Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
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
 

Functions

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

Macro Definition Documentation

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

Definition at line 209 of file crc32.cc.

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

Definition at line 210 of file crc32.cc.

#define local   static

Definition at line 31 of file crc32.cc.

#define TBLS   1

Definition at line 64 of file crc32.cc.

Function Documentation

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

Definition at line 213 of file crc32.cc.

Here is the caller graph for this function:

const unsigned long FAR* ZEXPORT get_crc_table ( )

Definition at line 199 of file crc32.cc.