Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

# crc32.c File Reference

`#include "zlib.h"`

Include dependency graph for crc32.c:

## 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
uLongf * | get_crc_table ()
uLong | crc32 (crc, buf, len) uLong crc
## Variables
uLongf | crc_table [256]
Bytef * | buf
uInt | len

## Define Documentation

#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);

#define local static

## Function Documentation

uLong crc32 | ( | crc | ,
|  | buf | ,
|  | len |
| ) |

uLongf* get_crc_table | ( |  | ) |

## Variable Documentation

Bytef* buf

uLongf crc_table[256]`[static]`

uInt len