Lines Matching defs:CRC
1287 static void updateCRC(int *CRC, int bit)
1294 }; /* CRC polynomial. poly[n] = coefficient of the x**n term of the
1295 CRC generator polynomial. */
1299 /* shift CRC and control bit (CRC[32]) */
1301 CRC[j] = CRC[j-1];
1302 CRC[0] = 0;
1304 /* If bit XOR(control bit) = 1, set CRC = CRC XOR polynomial. */
1305 if (bit ^ CRC[32])
1307 CRC[j] ^= poly[j];
1321 int CRC[33]={1}; /* CRC register, 1 word/bit + extra control bit */
1326 CRC[32]=0;
1330 updateCRC(CRC, (adr[byte] >> i) & 1);
1334 hashcode = (hashcode << 1) + CRC[i];