mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-08 22:07:07 -06:00
15.05
This commit is contained in:
committed by
Kornel Lesiński
parent
0713a3ab80
commit
54490d51d5
24
C/XzCrc64.c
24
C/XzCrc64.c
@@ -1,5 +1,5 @@
|
||||
/* XzCrc64.c -- CRC64 calculation
|
||||
2011-06-28 : Igor Pavlov : Public domain */
|
||||
2015-03-01 : Igor Pavlov : Public domain */
|
||||
|
||||
#include "Precomp.h"
|
||||
|
||||
@@ -13,14 +13,15 @@
|
||||
#else
|
||||
#define CRC_NUM_TABLES 5
|
||||
#define CRC_UINT64_SWAP(v) \
|
||||
((v >> 56) | \
|
||||
((v >> 40) & ((UInt64)0xFF << 8)) | \
|
||||
((v >> 24) & ((UInt64)0xFF << 16)) | \
|
||||
((v >> 8) & ((UInt64)0xFF << 24)) | \
|
||||
((v << 8) & ((UInt64)0xFF << 32)) | \
|
||||
((v << 24) & ((UInt64)0xFF << 40)) | \
|
||||
((v << 40) & ((UInt64)0xFF << 48)) | \
|
||||
(v << 56))
|
||||
((v >> 56) \
|
||||
| ((v >> 40) & ((UInt64)0xFF << 8)) \
|
||||
| ((v >> 24) & ((UInt64)0xFF << 16)) \
|
||||
| ((v >> 8) & ((UInt64)0xFF << 24)) \
|
||||
| ((v << 8) & ((UInt64)0xFF << 32)) \
|
||||
| ((v << 24) & ((UInt64)0xFF << 40)) \
|
||||
| ((v << 40) & ((UInt64)0xFF << 48)) \
|
||||
| ((v << 56)))
|
||||
|
||||
UInt64 MY_FAST_CALL XzCrc64UpdateT1_BeT4(UInt64 v, const void *data, size_t size, const UInt64 *table);
|
||||
#endif
|
||||
|
||||
@@ -64,11 +65,6 @@ void MY_FAST_CALL Crc64GenerateTable()
|
||||
|
||||
g_Crc64Update = XzCrc64UpdateT4;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#else
|
||||
{
|
||||
#ifndef MY_CPU_BE
|
||||
|
||||
Reference in New Issue
Block a user