Lines Matching refs:CRC
1369 static void updateCRC(int *CRC, int bit)
1376 }; /* CRC polynomial. poly[n] = coefficient of the x**n term of the
1377 CRC generator polynomial. */
1381 /* shift CRC and control bit (CRC[32]) */
1383 CRC[j] = CRC[j-1];
1384 CRC[0] = 0;
1386 /* If bit XOR(control bit) = 1, set CRC = CRC XOR polynomial. */
1387 if (bit ^ CRC[32])
1389 CRC[j] ^= poly[j];
1403 int CRC[33]={1}; /* CRC register, 1 word/bit + extra control bit */
1408 CRC[32]=0;
1412 updateCRC(CRC, (adr[byte] >> i) & 1);
1416 hashcode = (hashcode << 1) + CRC[i];