1 /* XzCrc64.h -- CRC64 calculation
\r
2 2013-01-18 : Igor Pavlov : Public domain */
\r
13 extern UInt64 g_Crc64Table[];
\r
15 void MY_FAST_CALL Crc64GenerateTable(void);
\r
17 #define CRC64_INIT_VAL UINT64_CONST(0xFFFFFFFFFFFFFFFF)
\r
18 #define CRC64_GET_DIGEST(crc) ((crc) ^ CRC64_INIT_VAL)
\r
19 #define CRC64_UPDATE_BYTE(crc, b) (g_Crc64Table[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8))
\r
21 UInt64 MY_FAST_CALL Crc64Update(UInt64 crc, const void *data, size_t size);
\r
22 UInt64 MY_FAST_CALL Crc64Calc(const void *data, size_t size);
\r