diff options
Diffstat (limited to '')
-rw-r--r-- | C/XzCrc64.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/C/XzCrc64.h b/C/XzCrc64.h index 08dbc33..ca46869 100644 --- a/C/XzCrc64.h +++ b/C/XzCrc64.h | |||
@@ -1,8 +1,8 @@ | |||
1 | /* XzCrc64.h -- CRC64 calculation | 1 | /* XzCrc64.h -- CRC64 calculation |
2 | 2013-01-18 : Igor Pavlov : Public domain */ | 2 | 2023-04-02 : Igor Pavlov : Public domain */ |
3 | 3 | ||
4 | #ifndef __XZ_CRC64_H | 4 | #ifndef ZIP7_INC_XZ_CRC64_H |
5 | #define __XZ_CRC64_H | 5 | #define ZIP7_INC_XZ_CRC64_H |
6 | 6 | ||
7 | #include <stddef.h> | 7 | #include <stddef.h> |
8 | 8 | ||
@@ -12,14 +12,14 @@ EXTERN_C_BEGIN | |||
12 | 12 | ||
13 | extern UInt64 g_Crc64Table[]; | 13 | extern UInt64 g_Crc64Table[]; |
14 | 14 | ||
15 | void MY_FAST_CALL Crc64GenerateTable(void); | 15 | void Z7_FASTCALL Crc64GenerateTable(void); |
16 | 16 | ||
17 | #define CRC64_INIT_VAL UINT64_CONST(0xFFFFFFFFFFFFFFFF) | 17 | #define CRC64_INIT_VAL UINT64_CONST(0xFFFFFFFFFFFFFFFF) |
18 | #define CRC64_GET_DIGEST(crc) ((crc) ^ CRC64_INIT_VAL) | 18 | #define CRC64_GET_DIGEST(crc) ((crc) ^ CRC64_INIT_VAL) |
19 | #define CRC64_UPDATE_BYTE(crc, b) (g_Crc64Table[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8)) | 19 | #define CRC64_UPDATE_BYTE(crc, b) (g_Crc64Table[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8)) |
20 | 20 | ||
21 | UInt64 MY_FAST_CALL Crc64Update(UInt64 crc, const void *data, size_t size); | 21 | UInt64 Z7_FASTCALL Crc64Update(UInt64 crc, const void *data, size_t size); |
22 | UInt64 MY_FAST_CALL Crc64Calc(const void *data, size_t size); | 22 | UInt64 Z7_FASTCALL Crc64Calc(const void *data, size_t size); |
23 | 23 | ||
24 | EXTERN_C_END | 24 | EXTERN_C_END |
25 | 25 | ||