2 bool CRC64::calculated =
false;
3 u_int64_t CRC64::crc_table[256];
22 for (
unsigned int i = 0; i < size; i++)
24 crc = crc_table[(crc ^ (data[i])) & 0xFF] ^ (crc >> 8);
31 void CRC64::calcCrcTable()
33 const u_int64_t CRCPOLY = 0x42F0E1EBA9EA3693ULL;
36 for (
register unsigned int i = 0; i < 256; i++)
39 for (
register int j = 8; j > 0; j--)
42 t = (t >> 1) ^ CRCPOLY;