fltk 1.3.0rc3
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Release candidate.
  SfR Fresh Dox: fltk-1.3.0rc3-source.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation)  

crc32.c File Reference

#include "zutil.h"
#include "crc32.h"
Include dependency graph for crc32.c:

Go to the source code of this file.

Defines

#define local   static
#define TBLS   1
#define DO1   crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8)
#define DO8   DO1; DO1; DO1; DO1; DO1; DO1; DO1; DO1
#define GF2_DIM   32

Functions

local unsigned long
gf2_matrix_times 
OF ((unsigned long *mat, unsigned long vec))
local void gf2_matrix_square OF ((unsigned long *square, unsigned long *mat))
const unsigned long FAR *ZEXPORT get_crc_table ()
unsigned long ZEXPORT crc32 (unsigned long crc, const unsigned char FAR *buf, unsigned len)
local unsigned long gf2_matrix_times (unsigned long *mat, unsigned long vec)
local void gf2_matrix_square (unsigned long *square, unsigned long *mat)
uLong ZEXPORT crc32_combine (uLong crc1, uLong crc2, z_off_t len2)

Define Documentation

#define DO1   crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8)

Definition at line 215 of file crc32.c.

Referenced by crc32().

#define DO8   DO1; DO1; DO1; DO1; DO1; DO1; DO1; DO1

Definition at line 216 of file crc32.c.

Referenced by crc32().

#define GF2_DIM   32

Definition at line 339 of file crc32.c.

Referenced by crc32_combine(), and gf2_matrix_square().

#define local   static

Definition at line 31 of file crc32.c.

#define TBLS   1

Definition at line 64 of file crc32.c.


Function Documentation

unsigned long ZEXPORT crc32 ( unsigned long  crc,
const unsigned char FAR *  buf,
unsigned  len 
)

Definition at line 219 of file crc32.c.

References DO1, DO8, and Z_NULL.

Referenced by deflate(), deflateReset(), gz_open(), gzread(), gzrewind(), gzwrite(), inflate(), png_calculate_crc(), png_reset_crc(), and read_buf().

uLong ZEXPORT crc32_combine ( uLong  crc1,
uLong  crc2,
z_off_t  len2 
)

Definition at line 370 of file crc32.c.

References GF2_DIM, gf2_matrix_square(), gf2_matrix_times(), and row.

const unsigned long FAR* ZEXPORT get_crc_table ( )

Definition at line 205 of file crc32.c.

References crc_table, and FAR.

local void gf2_matrix_square ( unsigned long *  square,
unsigned long *  mat 
)

Definition at line 359 of file crc32.c.

References GF2_DIM, and gf2_matrix_times().

Referenced by crc32_combine().

local unsigned long gf2_matrix_times ( unsigned long *  mat,
unsigned long  vec 
)

Definition at line 342 of file crc32.c.

Referenced by crc32_combine(), and gf2_matrix_square().

local unsigned long gf2_matrix_times OF ( (unsigned long *mat, unsigned long vec)  )
local void gf2_matrix_square OF ( (unsigned long *square, unsigned long *mat)  )