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

Macros

#define Z7_CRC_NUM_TABLES_USE   12
 
#define CRC_UPDATE_BYTE_2(crc, b)
 
#define Q(n, d)
 
#define R(a)
 
#define CRC_FUNC_PRE_LE2(step)
 
#define CRC_FUNC_PRE_LE(step)
 
#define U2(r, op)
 
#define U(r)
 
#define CRC_UPDATE_BYTE_2_BE(crc, b)
 
#define Q(n, d)
 
#define R(a)
 
#define CRC_FUNC_PRE_BE2(step)
 
#define CRC_FUNC_PRE_BE(step)
 
#define U2(r, op)
 
#define U(r)
 

Functions

 CRC_FUNC_PRE_LE (Z7_CRC_NUM_TABLES_USE)
 
 CRC_FUNC_PRE_BE (Z7_CRC_NUM_TABLES_USE)
 

Macro Definition Documentation

◆ CRC_FUNC_PRE_BE

#define CRC_FUNC_PRE_BE ( step)
Value:
CRC_FUNC_PRE_BE2(step)
#define CRC_FUNC_PRE_BE2(step)
Definition 7zCrcOpt.c:130

◆ CRC_FUNC_PRE_BE2

#define CRC_FUNC_PRE_BE2 ( step)
Value:
UInt32 Z7_FASTCALL CrcUpdateT1_BeT ## step (UInt32 v, const void *data, size_t size, const UInt32 *table)
#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
unsigned int UInt32
Definition bzlib_private.h:45

◆ CRC_FUNC_PRE_LE

#define CRC_FUNC_PRE_LE ( step)
Value:
CRC_FUNC_PRE_LE2(step)
#define CRC_FUNC_PRE_LE2(step)
Definition 7zCrcOpt.c:43

◆ CRC_FUNC_PRE_LE2

#define CRC_FUNC_PRE_LE2 ( step)
Value:
UInt32 Z7_FASTCALL CrcUpdateT ## step (UInt32 v, const void *data, size_t size, const UInt32 *table)

◆ CRC_UPDATE_BYTE_2

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

◆ CRC_UPDATE_BYTE_2_BE

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

◆ Q [1/2]

#define Q ( n,
d )
Value:
( (table + ((n) * 4 + 3) * 0x100)[(Byte)(d)] \
^ (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)] )
unsigned char Byte
Definition zconf.h:391
#define d(i)
Definition sha256.c:44

◆ Q [2/2]

#define Q ( n,
d )
Value:
( (table + ((n) * 4 + 0) * 0x100)[((d)) & 0xFF] \
^ (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)] )

◆ R [1/2]

#define R ( a)
Value:
*((const UInt32 *)(const void *)p + (a))
#define a(i)
Definition sha256.c:41

◆ R [2/2]

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

◆ U [1/2]

#define U ( r)
Value:
U2(r, ^=)
#define U2(r, op)

◆ U [2/2]

#define U ( r)
Value:
U2(r, ^=)

◆ U2 [1/2]

#define U2 ( r,
op )
Value:
{ d = R(r); x op Q(Z7_CRC_NUM_TABLES_USE / 4 - 1 - (r), d); }
#define Q(n, d)
Definition 7zCrcOpt.c:35
#define R(a)
Definition 7zCrcOpt.c:41
#define Z7_CRC_NUM_TABLES_USE
Definition 7zCrcOpt.c:21
#define op

◆ U2 [2/2]

#define U2 ( r,
op )
Value:
{ d = R(r); x op Q(Z7_CRC_NUM_TABLES_USE / 4 - 1 - (r), d); }

◆ Z7_CRC_NUM_TABLES_USE

#define Z7_CRC_NUM_TABLES_USE   12

Function Documentation

◆ CRC_FUNC_PRE_BE()

CRC_FUNC_PRE_BE ( Z7_CRC_NUM_TABLES_USE )

◆ CRC_FUNC_PRE_LE()

CRC_FUNC_PRE_LE ( Z7_CRC_NUM_TABLES_USE )