Go to the source code of this file.
|
uint32_t | ar_crc32 (uint32_t crc32, const unsigned char *data, size_t data_len) |
|
uint32_t ar_crc32 |
( |
uint32_t |
crc32, |
|
|
const unsigned char * |
data, |
|
|
size_t |
data_len |
|
) |
| |
Definition at line 13 of file crc32.c.
19 for (i = 128; i; i >>= 1) {
20 h = (h >> 1) ^ ((h & 1) ? 0xEDB88320 : 0);
21 for (j = 0; j < 256; j += 2 * i) {
28 crc32 = crc32 ^ 0xFFFFFFFF;
29 while (data_len-- > 0) {
30 crc32 = (crc32 >> 8) ^
crc_table[(crc32 ^ *data++) & 0xFF];
32 return crc32 ^ 0xFFFFFFFF;
bool crc_table_ready = false |
|
static |