RetroArch
Macros | Functions | Variables
7zCrc.h File Reference
#include "7zTypes.h"
Include dependency graph for 7zCrc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CRC_INIT_VAL   0xFFFFFFFF
 
#define CRC_GET_DIGEST(crc)   ((crc) ^ CRC_INIT_VAL)
 
#define CRC_UPDATE_BYTE(crc, b)   (g_CrcTable[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8))
 

Functions

void MY_FAST_CALL CrcGenerateTable (void)
 
uint32_t MY_FAST_CALL CrcUpdate (uint32_t crc, const void *data, size_t size)
 
uint32_t MY_FAST_CALL CrcCalc (const void *data, size_t size)
 

Variables

uint32_t g_CrcTable []
 

Macro Definition Documentation

◆ CRC_GET_DIGEST

#define CRC_GET_DIGEST (   crc)    ((crc) ^ CRC_INIT_VAL)

◆ CRC_INIT_VAL

#define CRC_INIT_VAL   0xFFFFFFFF

◆ CRC_UPDATE_BYTE

#define CRC_UPDATE_BYTE (   crc,
  b 
)    (g_CrcTable[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8))

Function Documentation

◆ CrcCalc()

uint32_t MY_FAST_CALL CrcCalc ( const void data,
size_t  size 
)
Here is the caller graph for this function:

◆ CrcGenerateTable()

void MY_FAST_CALL CrcGenerateTable ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CrcUpdate()

uint32_t MY_FAST_CALL CrcUpdate ( uint32_t  crc,
const void data,
size_t  size 
)

Variable Documentation

◆ g_CrcTable

uint32_t g_CrcTable[]