Lines Matching refs:CRC
1324 static void updateCRC(int *CRC, int bit)
1331 }; /* CRC polynomial. poly[n] = coefficient of the x**n term of the
1332 CRC generator polynomial. */
1336 /* shift CRC and control bit (CRC[32]) */
1338 CRC[j] = CRC[j-1];
1339 CRC[0] = 0;
1341 /* If bit XOR(control bit) = 1, set CRC = CRC XOR polynomial. */
1342 if (bit ^ CRC[32])
1344 CRC[j] ^= poly[j];
1358 int CRC[33]={1}; /* CRC register, 1 word/bit + extra control bit */
1363 CRC[32]=0;
1367 updateCRC(CRC, (adr[byte] >> i) & 1);
1371 hashcode = (hashcode << 1) + CRC[i];