BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Macros | Functions | Variables
crc.cpp File Reference
#include <stdint.h>
#include <stdlib.h>

Go to the source code of this file.

Macros

#define CRC32C_POLY   0x1EDC6F41
 
#define CRC32C(c, d)   (c=(c>>8)^crc_c[(c^(d))&0xFF])
 

Functions

uint32_t crc32cSlicingBy8 (uint32_t crc, const void *data, size_t length)
 
uint64_t _mm_crc32_u64_impl (uint64_t a, uint64_t b)
 

Variables

const uint32_t crc_tableil8_o32 [256]
 
const uint32_t crc_tableil8_o40 [256]
 
const uint32_t crc_tableil8_o48 [256]
 
const uint32_t crc_tableil8_o56 [256]
 
const uint32_t crc_tableil8_o64 [256]
 
const uint32_t crc_tableil8_o72 [256]
 
const uint32_t crc_tableil8_o80 [256]
 
const uint32_t crc_tableil8_o88 [256]
 

Macro Definition Documentation

◆ CRC32C

#define CRC32C (   c,
 
)    (c=(c>>8)^crc_c[(c^(d))&0xFF])

Definition at line 518 of file crc.cpp.

◆ CRC32C_POLY

#define CRC32C_POLY   0x1EDC6F41

Definition at line 516 of file crc.cpp.

Function Documentation

◆ _mm_crc32_u64_impl()

uint64_t _mm_crc32_u64_impl ( uint64_t  a,
uint64_t  b 
)

Definition at line 607 of file crc.cpp.

◆ crc32cSlicingBy8()

uint32_t crc32cSlicingBy8 ( uint32_t  crc,
const void *  data,
size_t  length 
)

Definition at line 476 of file crc.cpp.

Variable Documentation

◆ crc_tableil8_o32

const uint32_t crc_tableil8_o32[256]

Definition at line 41 of file crc.cpp.

◆ crc_tableil8_o40

const uint32_t crc_tableil8_o40[256]

Definition at line 97 of file crc.cpp.

◆ crc_tableil8_o48

const uint32_t crc_tableil8_o48[256]

Definition at line 153 of file crc.cpp.

◆ crc_tableil8_o56

const uint32_t crc_tableil8_o56[256]

Definition at line 209 of file crc.cpp.

◆ crc_tableil8_o64

const uint32_t crc_tableil8_o64[256]

Definition at line 265 of file crc.cpp.

◆ crc_tableil8_o72

const uint32_t crc_tableil8_o72[256]

Definition at line 321 of file crc.cpp.

◆ crc_tableil8_o80

const uint32_t crc_tableil8_o80[256]

Definition at line 377 of file crc.cpp.

◆ crc_tableil8_o88

const uint32_t crc_tableil8_o88[256]

Definition at line 433 of file crc.cpp.