RetroArch
Macros
LzHash.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define kHash2Size   (1 << 10)
 
#define kHash3Size   (1 << 16)
 
#define kHash4Size   (1 << 20)
 
#define kFix3HashSize   (kHash2Size)
 
#define kFix4HashSize   (kHash2Size + kHash3Size)
 
#define kFix5HashSize   (kHash2Size + kHash3Size + kHash4Size)
 
#define HASH2_CALC   hv = cur[0] | ((uint32_t)cur[1] << 8);
 
#define HASH3_CALC
 
#define HASH4_CALC
 
#define HASH5_CALC
 
#define HASH_ZIP_CALC   hv = ((cur[2] | ((uint32_t)cur[0] << 8)) ^ p->crc[cur[1]]) & 0xFFFF;
 
#define MT_HASH2_CALC   h2 = (p->crc[cur[0]] ^ cur[1]) & (kHash2Size - 1);
 
#define MT_HASH3_CALC
 
#define MT_HASH4_CALC
 

Macro Definition Documentation

◆ HASH2_CALC

#define HASH2_CALC   hv = cur[0] | ((uint32_t)cur[1] << 8);

◆ HASH3_CALC

#define HASH3_CALC
Value:
{ \
uint32_t temp = p->crc[cur[0]] ^ cur[1]; \
h2 = temp & (kHash2Size - 1); \
hv = (temp ^ ((uint32_t)cur[2] << 8)) & p->hashMask; }
static overlayled_t * cur
Definition: led_overlay.c:18
#define kHash2Size
Definition: LzHash.h:7
GLfloat GLfloat p
Definition: glext.h:9809
unsigned int uint32_t
Definition: stdint.h:126

◆ HASH4_CALC

#define HASH4_CALC
Value:
{ \
uint32_t temp = p->crc[cur[0]] ^ cur[1]; \
h2 = temp & (kHash2Size - 1); \
temp ^= ((uint32_t)cur[2] << 8); \
h3 = temp & (kHash3Size - 1); \
hv = (temp ^ (p->crc[cur[3]] << 5)) & p->hashMask; }
static overlayled_t * cur
Definition: led_overlay.c:18
#define kHash2Size
Definition: LzHash.h:7
GLfloat GLfloat p
Definition: glext.h:9809
#define kHash3Size
Definition: LzHash.h:8
unsigned int uint32_t
Definition: stdint.h:126

◆ HASH5_CALC

#define HASH5_CALC
Value:
{ \
uint32_t temp = p->crc[cur[0]] ^ cur[1]; \
h2 = temp & (kHash2Size - 1); \
temp ^= ((uint32_t)cur[2] << 8); \
h3 = temp & (kHash3Size - 1); \
temp ^= (p->crc[cur[3]] << 5); \
h4 = temp & (kHash4Size - 1); \
hv = (temp ^ (p->crc[cur[4]] << 3)) & p->hashMask; }
static overlayled_t * cur
Definition: led_overlay.c:18
#define kHash4Size
Definition: LzHash.h:9
#define kHash2Size
Definition: LzHash.h:7
GLfloat GLfloat p
Definition: glext.h:9809
#define kHash3Size
Definition: LzHash.h:8
unsigned int uint32_t
Definition: stdint.h:126

◆ HASH_ZIP_CALC

#define HASH_ZIP_CALC   hv = ((cur[2] | ((uint32_t)cur[0] << 8)) ^ p->crc[cur[1]]) & 0xFFFF;

◆ kFix3HashSize

#define kFix3HashSize   (kHash2Size)

◆ kFix4HashSize

#define kFix4HashSize   (kHash2Size + kHash3Size)

◆ kFix5HashSize

#define kFix5HashSize   (kHash2Size + kHash3Size + kHash4Size)

◆ kHash2Size

#define kHash2Size   (1 << 10)

◆ kHash3Size

#define kHash3Size   (1 << 16)

◆ kHash4Size

#define kHash4Size   (1 << 20)

◆ MT_HASH2_CALC

#define MT_HASH2_CALC   h2 = (p->crc[cur[0]] ^ cur[1]) & (kHash2Size - 1);

◆ MT_HASH3_CALC

#define MT_HASH3_CALC
Value:
{ \
uint32_t temp = p->crc[cur[0]] ^ cur[1]; \
h2 = temp & (kHash2Size - 1); \
h3 = (temp ^ ((uint32_t)cur[2] << 8)) & (kHash3Size - 1); }
static overlayled_t * cur
Definition: led_overlay.c:18
#define kHash2Size
Definition: LzHash.h:7
GLfloat GLfloat p
Definition: glext.h:9809
#define kHash3Size
Definition: LzHash.h:8
unsigned int uint32_t
Definition: stdint.h:126

◆ MT_HASH4_CALC

#define MT_HASH4_CALC
Value:
{ \
uint32_t temp = p->crc[cur[0]] ^ cur[1]; \
h2 = temp & (kHash2Size - 1); \
temp ^= ((uint32_t)cur[2] << 8); \
h3 = temp & (kHash3Size - 1); \
h4 = (temp ^ (p->crc[cur[3]] << 5)) & (kHash4Size - 1); }
static overlayled_t * cur
Definition: led_overlay.c:18
#define kHash4Size
Definition: LzHash.h:9
#define kHash2Size
Definition: LzHash.h:7
GLfloat GLfloat p
Definition: glext.h:9809
#define kHash3Size
Definition: LzHash.h:8
unsigned int uint32_t
Definition: stdint.h:126