Changeset View
Standalone View
contrib/zlib/crc32.h
#ifndef CRC32_H | |||||
#define CRC32_H | |||||
delphij: We try to minimize divergence from upstream -- is this necessary? (the only consumer is zlib's… | |||||
Done Inline ActionsIt looks I missed 2 new files addition and update to sys/libkern/zlib.c. I make this change off of git clone for ease of staging my change set. I will update a correct revision in a couple of days. I added these #ifndef because I updated sys/libkern/zlib.c to include multiple zlib c files to compile. Given sys/conf/files does refer to out side of "sys", this was the easiest to compile contrib/zlib c files. I also don't know the difference between sys/conf/files and sys/modules/zlib/Makefile and why the same set of files need to be listed twice. We will work this item later. ota_j.email.ne.jp: It looks I missed 2 new files addition and update to sys/libkern/zlib.c. I make this change… | |||||
Done Inline Actions
This is because sys/conf/files is for the kernel (for consumption by config(8) ) while sys/modules/zlib/Makefile is for the module only. delphij: > I also don't know the difference between sys/conf/files and sys/modules/zlib/Makefile and why… | |||||
/* crc32.h -- tables for rapid CRC calculation | /* crc32.h -- tables for rapid CRC calculation | ||||
* Generated automatically by crc32.c | * Generated automatically by crc32.c | ||||
*/ | */ | ||||
local const z_crc_t FAR crc_table[TBLS][256] = | local const z_crc_t FAR crc_table[TBLS][256] = | ||||
{ | { | ||||
{ | { | ||||
0x00000000UL, 0x77073096UL, 0xee0e612cUL, 0x990951baUL, 0x076dc419UL, | 0x00000000UL, 0x77073096UL, 0xee0e612cUL, 0x990951baUL, 0x076dc419UL, | ||||
▲ Show 20 Lines • Show All 425 Lines • ▼ Show 20 Lines | #ifdef BYFOUR | ||||
0x39c67e01UL, 0x80fea99cUL, 0xe5991524UL, 0x0b36a036UL, 0x6e511c8eUL, | 0x39c67e01UL, 0x80fea99cUL, 0xe5991524UL, 0x0b36a036UL, 0x6e511c8eUL, | ||||
0xa7166686UL, 0xc271da3eUL, 0x2cde6f2cUL, 0x49b9d394UL, 0xf0810409UL, | 0xa7166686UL, 0xc271da3eUL, 0x2cde6f2cUL, 0x49b9d394UL, 0xf0810409UL, | ||||
0x95e6b8b1UL, 0x7b490da3UL, 0x1e2eb11bUL, 0x483ed243UL, 0x2d596efbUL, | 0x95e6b8b1UL, 0x7b490da3UL, 0x1e2eb11bUL, 0x483ed243UL, 0x2d596efbUL, | ||||
0xc3f6dbe9UL, 0xa6916751UL, 0x1fa9b0ccUL, 0x7ace0c74UL, 0x9461b966UL, | 0xc3f6dbe9UL, 0xa6916751UL, 0x1fa9b0ccUL, 0x7ace0c74UL, 0x9461b966UL, | ||||
0xf10605deUL | 0xf10605deUL | ||||
#endif | #endif | ||||
} | } | ||||
}; | }; | ||||
#endif |
We try to minimize divergence from upstream -- is this necessary? (the only consumer is zlib's crc32.c).