#include "zutil.h"
#include "crc32.h"
gehe zum Quellcode dieser Datei
#define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8) |
#define GF2_DIM 32 /* dimension of GF(2) vectors (length of CRC) */ |
unsigned long ZEXPORT crc32 |
( |
unsigned long |
crc, |
|
|
const unsigned char FAR * |
buf, |
|
|
unsigned |
len |
|
) |
| |
Definiert in Zeile 219 der Datei crc32.c.
226 #ifdef DYNAMIC_CRC_TABLE
232 if (
sizeof(
void *) ==
sizeof(
ptrdiff_t)) {
236 if (*((
unsigned char *)(&endian)))
237 return crc32_little(crc,
buf,
len);
239 return crc32_big(crc,
buf,
len);
242 crc = crc ^ 0xffffffffUL;
250 return crc ^ 0xffffffffUL;
Definiert in Zeile 370 der Datei crc32.c.
385 odd[0] = 0xedb88320
L;
387 for (n = 1; n <
GF2_DIM; n++) {
Definiert in Zeile 205 der Datei crc32.c.
207 #ifdef DYNAMIC_CRC_TABLE
local void gf2_matrix_square |
( |
unsigned long * |
square, |
|
|
unsigned long * |
mat |
|
) |
| |
local unsigned long gf2_matrix_times |
( |
unsigned long * |
mat, |
|
|
unsigned long |
vec |
|
) |
| |