Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

crc32.c File Reference

#include "zlib.h"

Go to the source code of this file.

Defines

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

Functions

const uLongf *ZEXPORT get_crc_table ()
uLong ZEXPORT crc32 (crc, buf, len) uLong crc

Variables

local const uLongf crc_table [256]
const Bytefbuf
uInt len


Define Documentation

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

Definition at line 136 of file crc32.c.

#define DO2 buf       DO1(buf); DO1(buf);
 

Definition at line 137 of file crc32.c.

#define DO4 buf       DO2(buf); DO2(buf);
 

Definition at line 138 of file crc32.c.

#define DO8 buf       DO4(buf); DO4(buf);
 

Definition at line 139 of file crc32.c.

#define local   static
 

Definition at line 10 of file crc32.c.


Function Documentation

uLong ZEXPORT crc32 crc   ,
buf   ,
len   
 

const uLongf* ZEXPORT get_crc_table  
 

Definition at line 127 of file crc32.c.

00128 {
00129 #ifdef DYNAMIC_CRC_TABLE
00130   if (crc_table_empty) make_crc_table();
00131 #endif
00132   return (const uLongf *)crc_table;
00133 }


Variable Documentation

const Bytef* buf
 

Definition at line 144 of file crc32.c.

local const uLongf crc_table[256]
 

Definition at line 68 of file crc32.c.

uInt len
 

Definition at line 145 of file crc32.c.


Generated on Sat Oct 13 16:08:47 2001 for XMILL by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001