Geant4  10.00.p01
crc32.cc File Reference
#include "zutil.h"
#include "crc32.h"
+ Include dependency graph for crc32.cc:

Go to the source code of this file.

Macros

#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 /* dimension of GF(2) vectors (length of CRC) */
 

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))
 
local uLong crc32_combine_ OF ((uLong crc1, uLong crc2, z_off64_t len2))
 
const z_crc_t FAR *ZEXPORT get_crc_table ()
 
unsigned long ZEXPORT crc32 (unsigned long crc, const unsigned char FAR *buf, uInt len)
 
local unsigned long gf2_matrix_times (unsigned long *mat, unsigned long vec)
 
local void gf2_matrix_square (unsigned long *square, unsigned long *mat)
 
local uLong crc32_combine_ (uLong crc1, uLong crc2, z_off64_t len2)
 
uLong ZEXPORT crc32_combine (uLong crc1, uLong crc2, z_off_t len2)
 
uLong ZEXPORT crc32_combine64 (uLong crc1, uLong crc2, z_off64_t len2)
 

Macro Definition Documentation

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

Definition at line 198 of file crc32.cc.

Referenced by crc32().

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

Definition at line 199 of file crc32.cc.

Referenced by crc32().

#define GF2_DIM   32 /* dimension of GF(2) vectors (length of CRC) */

Definition at line 313 of file crc32.cc.

Referenced by crc32_combine_(), and gf2_matrix_square().

#define local   static

Definition at line 33 of file crc32.cc.

#define TBLS   1

Definition at line 46 of file crc32.cc.

Function Documentation

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

Definition at line 202 of file crc32.cc.

References DO1, and DO8.

Referenced by deflate(), deflateResetKeep(), inflate(), and read_buf().

+ Here is the caller graph for this function:

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

Definition at line 393 of file crc32.cc.

References crc32_combine_().

+ Here is the call graph for this function:

uLong ZEXPORT crc32_combine64 ( uLong  crc1,
uLong  crc2,
z_off64_t  len2 
)

Definition at line 398 of file crc32.cc.

References crc32_combine_().

+ Here is the call graph for this function:

local uLong crc32_combine_ ( uLong  crc1,
uLong  crc2,
z_off64_t  len2 
)

Definition at line 340 of file crc32.cc.

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

Referenced by crc32_combine(), and crc32_combine64().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const z_crc_t FAR* ZEXPORT get_crc_table ( )

Definition at line 188 of file crc32.cc.

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

Definition at line 331 of file crc32.cc.

References GF2_DIM, gf2_matrix_times(), and n.

Referenced by crc32_combine_().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 316 of file crc32.cc.

Referenced by crc32_combine_(), and gf2_matrix_square().

+ Here is the caller graph for this function:

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)  )
local uLong crc32_combine_ OF ( (uLong crc1, uLong crc2, z_off64_t len2)  )