RetroArch
Macros | Functions | Variables
crc.h File Reference
#include "../FLAC/ordinals.h"
Include dependency graph for crc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FLAC__CRC8_UPDATE(data, crc)   (crc) = FLAC__crc8_table[(crc) ^ (data)];
 
#define FLAC__CRC16_UPDATE(data, crc)   ((((crc)<<8) & 0xffff) ^ FLAC__crc16_table[((crc)>>8) ^ (data)])
 

Functions

void FLAC__crc8_update (const FLAC__byte data, FLAC__uint8 *crc)
 
void FLAC__crc8_update_block (const FLAC__byte *data, unsigned len, FLAC__uint8 *crc)
 
FLAC__uint8 FLAC__crc8 (const FLAC__byte *data, unsigned len)
 
unsigned FLAC__crc16 (const FLAC__byte *data, unsigned len)
 

Variables

FLAC__byte const FLAC__crc8_table [256]
 
unsigned const FLAC__crc16_table [256]
 

Macro Definition Documentation

◆ FLAC__CRC16_UPDATE

#define FLAC__CRC16_UPDATE (   data,
  crc 
)    ((((crc)<<8) & 0xffff) ^ FLAC__crc16_table[((crc)>>8) ^ (data)])

◆ FLAC__CRC8_UPDATE

#define FLAC__CRC8_UPDATE (   data,
  crc 
)    (crc) = FLAC__crc8_table[(crc) ^ (data)];

Function Documentation

◆ FLAC__crc16()

unsigned FLAC__crc16 ( const FLAC__byte data,
unsigned  len 
)

◆ FLAC__crc8()

FLAC__uint8 FLAC__crc8 ( const FLAC__byte data,
unsigned  len 
)
Here is the caller graph for this function:

◆ FLAC__crc8_update()

void FLAC__crc8_update ( const FLAC__byte  data,
FLAC__uint8 crc 
)

◆ FLAC__crc8_update_block()

void FLAC__crc8_update_block ( const FLAC__byte data,
unsigned  len,
FLAC__uint8 crc 
)

Variable Documentation

◆ FLAC__crc16_table

unsigned const FLAC__crc16_table[256]

◆ FLAC__crc8_table

FLAC__byte const FLAC__crc8_table[256]