pcsx2/3rdparty/lzma/include/XzCrc64.h

27 lines
635 B
C
Raw Normal View History

2022-05-12 07:48:39 +00:00
/* XzCrc64.h -- CRC64 calculation
2024-11-01 23:04:27 +00:00
2023-12-08 : Igor Pavlov : Public domain */
2022-05-12 07:48:39 +00:00
2024-05-10 23:10:28 +00:00
#ifndef ZIP7_INC_XZ_CRC64_H
#define ZIP7_INC_XZ_CRC64_H
2022-05-12 07:48:39 +00:00
#include <stddef.h>
#include "7zTypes.h"
EXTERN_C_BEGIN
2024-11-01 23:04:27 +00:00
// extern UInt64 g_Crc64Table[];
2022-05-12 07:48:39 +00:00
2024-05-10 23:10:28 +00:00
void Z7_FASTCALL Crc64GenerateTable(void);
2022-05-12 07:48:39 +00:00
#define CRC64_INIT_VAL UINT64_CONST(0xFFFFFFFFFFFFFFFF)
#define CRC64_GET_DIGEST(crc) ((crc) ^ CRC64_INIT_VAL)
2024-11-01 23:04:27 +00:00
// #define CRC64_UPDATE_BYTE(crc, b) (g_Crc64Table[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8))
2022-05-12 07:48:39 +00:00
2024-05-10 23:10:28 +00:00
UInt64 Z7_FASTCALL Crc64Update(UInt64 crc, const void *data, size_t size);
2024-11-01 23:04:27 +00:00
// UInt64 Z7_FASTCALL Crc64Calc(const void *data, size_t size);
2022-05-12 07:48:39 +00:00
EXTERN_C_END
#endif