Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
XzCrc64Opt.c File Reference
#include "Precomp.h"
#include "CpuArch.h"

Macros

#define Z7_CRC64_NUM_TABLES_USE   12
 
#define CRC64_UPDATE_BYTE_2(crc, b)
 
#define Q32LE(n, d)
 
#define R32(a)
 
#define CRC64_FUNC_PRE_LE2(step)
 
#define CRC64_FUNC_PRE_LE(step)
 
#define CRC64_UPDATE_BYTE_2_BE(crc, b)
 
#define Q32BE(n, d)
 
#define R32BE(a)
 
#define CRC64_FUNC_PRE_BE2(step)
 
#define CRC64_FUNC_PRE_BE(step)
 

Functions

 CRC64_FUNC_PRE_LE (Z7_CRC64_NUM_TABLES_USE)
 
 CRC64_FUNC_PRE_BE (Z7_CRC64_NUM_TABLES_USE)
 

Macro Definition Documentation

◆ CRC64_FUNC_PRE_BE

#define CRC64_FUNC_PRE_BE ( step)
Value:
CRC64_FUNC_PRE_BE2(step)
#define CRC64_FUNC_PRE_BE2(step)
Definition XzCrc64Opt.c:186

◆ CRC64_FUNC_PRE_BE2

#define CRC64_FUNC_PRE_BE2 ( step)
Value:
UInt64 Z7_FASTCALL XzCrc64UpdateBeT ## step (UInt64 v, const void *data, size_t size, const UInt64 *table)
unsigned long long int UInt64
Definition 7zTypes.h:234
#define Z7_FASTCALL
Definition 7zTypes.h:308
static const void size_t const UInt64 * table
Definition XzCrc64.c:50
Definition poolTests.c:28
size_t size
Definition platform.h:559

◆ CRC64_FUNC_PRE_LE

#define CRC64_FUNC_PRE_LE ( step)
Value:
CRC64_FUNC_PRE_LE2(step)
#define CRC64_FUNC_PRE_LE2(step)
Definition XzCrc64Opt.c:66

◆ CRC64_FUNC_PRE_LE2

#define CRC64_FUNC_PRE_LE2 ( step)
Value:
UInt64 Z7_FASTCALL XzCrc64UpdateT ## step (UInt64 v, const void *data, size_t size, const UInt64 *table)

◆ CRC64_UPDATE_BYTE_2

#define CRC64_UPDATE_BYTE_2 ( crc,
b )
Value:
(table[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8))
#define b(i)
Definition sha256.c:42

◆ CRC64_UPDATE_BYTE_2_BE

#define CRC64_UPDATE_BYTE_2_BE ( crc,
b )
Value:
(table[((crc) >> 56) ^ (b)] ^ ((crc) << 8))

◆ Q32BE

#define Q32BE ( n,
d )
Value:
( (table + ((n) * 4 + 0) * 0x100)[(Byte)(d)] \
^ (table + ((n) * 4 + 1) * 0x100)[((d) >> 1 * 8) & 0xFF] \
^ (table + ((n) * 4 + 2) * 0x100)[((d) >> 2 * 8) & 0xFF] \
^ (table + ((n) * 4 + 3) * 0x100)[((d) >> 3 * 8)] )
unsigned char Byte
Definition zconf.h:391
#define d(i)
Definition sha256.c:44

◆ Q32LE

#define Q32LE ( n,
d )
Value:
( (table + ((n) * 4 + 3) * 0x100)[((d) ) & 0xFF] \
^ (table + ((n) * 4 + 2) * 0x100)[((d) >> 1 * 8) & 0xFF] \
^ (table + ((n) * 4 + 1) * 0x100)[((d) >> 2 * 8) & 0xFF] \
^ (table + ((n) * 4 + 0) * 0x100)[((d) >> 3 * 8)] )

◆ R32

#define R32 ( a)
Value:
*((const UInt32 *)(const void *)p + (a))
unsigned int UInt32
Definition bzlib_private.h:45
#define a(i)
Definition sha256.c:41

◆ R32BE

#define R32BE ( a)
Value:
*((const UInt32 *)(const void *)p + (a))

◆ Z7_CRC64_NUM_TABLES_USE

#define Z7_CRC64_NUM_TABLES_USE   12

Function Documentation

◆ CRC64_FUNC_PRE_BE()

CRC64_FUNC_PRE_BE ( Z7_CRC64_NUM_TABLES_USE )

◆ CRC64_FUNC_PRE_LE()

CRC64_FUNC_PRE_LE ( Z7_CRC64_NUM_TABLES_USE )