Lines Matching refs:CRC
1286 static void updateCRC(int *CRC, int bit)
1293 }; /* CRC polynomial. poly[n] = coefficient of the x**n term of the
1294 CRC generator polynomial. */
1298 /* shift CRC and control bit (CRC[32]) */
1300 CRC[j] = CRC[j-1];
1301 CRC[0] = 0;
1303 /* If bit XOR(control bit) = 1, set CRC = CRC XOR polynomial. */
1304 if (bit ^ CRC[32])
1306 CRC[j] ^= poly[j];
1320 int CRC[33]={1}; /* CRC register, 1 word/bit + extra control bit */
1325 CRC[32]=0;
1329 updateCRC(CRC, (adr[byte] >> i) & 1);
1333 hashcode = (hashcode << 1) + CRC[i];