Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
crc32.c File Reference
#include "zutil.h"
#include "crc32.h"
Include dependency graph for crc32.c:

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

static unsigned long gf2_matrix_times ()
 
static void gf2_matrix_square ()
 
static uLong crc32_combine_ ()
 
z_crc_tget_crc_table ()
 
unsigned long crc32 (unsigned long crc, unsigned char *buf, uInt len)
 
static unsigned long gf2_matrix_times (unsigned long *mat, unsigned long vec)
 
static void gf2_matrix_square (unsigned long *square, unsigned long *mat)
 
static uLong crc32_combine_ (uLong crc1, uLong crc2, long len2)
 
uLong crc32_combine (uLong crc1, uLong crc2, long len2)
 
uLong crc32_combine64 (uLong crc1, uLong crc2, long len2)
 

Macro Definition Documentation

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

Definition at line 200 of file crc32.c.

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

Definition at line 201 of file crc32.c.

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

Definition at line 324 of file crc32.c.

#define local   static

Definition at line 33 of file crc32.c.

#define TBLS   1

Definition at line 46 of file crc32.c.

Function Documentation

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

Definition at line 204 of file crc32.c.

uLong crc32_combine ( uLong  crc1,
uLong  crc2,
long  len2 
)

Definition at line 411 of file crc32.c.

uLong crc32_combine64 ( uLong  crc1,
uLong  crc2,
long  len2 
)

Definition at line 419 of file crc32.c.

static uLong crc32_combine_ ( )
static
static uLong crc32_combine_ ( uLong  crc1,
uLong  crc2,
long  len2 
)
static

Definition at line 355 of file crc32.c.

z_crc_t* get_crc_table ( )

Definition at line 190 of file crc32.c.

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

Definition at line 344 of file crc32.c.

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

Definition at line 327 of file crc32.c.