Home | History | Annotate | Download | only in zlib

Lines Matching refs:crc_table

75 local unsigned long FAR crc_table[TBLS][256];

131 crc_table[0][n] = c;
138 c = crc_table[0][n];
139 crc_table[4][n] = REV(c);
141 c = crc_table[0][c & 0xff] ^ (c >> 8);
142 crc_table[k][n] = c;
143 crc_table[k + 4][n] = REV(c);
166 fprintf(out, "crc_table[TBLS][256] =\n{\n {\n");
167 write_table(out, crc_table[0]);
172 write_table(out, crc_table[k]);
211 return (const unsigned long FAR *)crc_table;
215 #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8)
257 c = crc_table[3][c & 0xff] ^ crc_table[2][(c >> 8) & 0xff] ^ \
258 crc_table[1][(c >> 16) & 0xff] ^ crc_table[0][c >> 24]
273 c = crc_table[0][(c ^ *buf++) & 0xff] ^ (c >> 8);
289 c = crc_table[0][(c ^ *buf++) & 0xff] ^ (c >> 8);
297 c = crc_table[4][c & 0xff] ^ crc_table[5][(c >> 8) & 0xff] ^ \
298 crc_table[6][(c >> 16) & 0xff] ^ crc_table[7][c >> 24]
313 c = crc_table[4][(c >> 24) ^ *buf++] ^ (c << 8);
331 c = crc_table[4][(c >> 24) ^ *buf++] ^ (c << 8);