aboutsummaryrefslogtreecommitdiff
path: root/C/XzCrc64.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--C/XzCrc64.h12
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
22013-01-18 : Igor Pavlov : Public domain */ 22023-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
13extern UInt64 g_Crc64Table[]; 13extern UInt64 g_Crc64Table[];
14 14
15void MY_FAST_CALL Crc64GenerateTable(void); 15void 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
21UInt64 MY_FAST_CALL Crc64Update(UInt64 crc, const void *data, size_t size); 21UInt64 Z7_FASTCALL Crc64Update(UInt64 crc, const void *data, size_t size);
22UInt64 MY_FAST_CALL Crc64Calc(const void *data, size_t size); 22UInt64 Z7_FASTCALL Crc64Calc(const void *data, size_t size);
23 23
24EXTERN_C_END 24EXTERN_C_END
25 25