FreeBSD kernel libkern code
crc32.c File Reference
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/systm.h>
Include dependency graph for crc32.c:

Go to the source code of this file.

Functions

 __FBSDID ("$BSDSUniX$")
 
static uint32_t singletable_crc32c (uint32_t crc, const void *buf, size_t size)
 
static uint32_t crc32c_sb8_64_bit (uint32_t crc, const unsigned char *p_buf, uint32_t length, uint32_t init_bytes)
 
static uint32_t multitable_crc32c (uint32_t crc32c, const unsigned char *buffer, unsigned int length)
 
uint32_t calculate_crc32c (uint32_t crc32c, const unsigned char *buffer, unsigned int length)
 

Variables

uint32_t crc32_tab []
 
static uint32_t crc32Table [256]
 
static uint32_t sctp_crc_tableil8_o32 [256]
 
static uint32_t sctp_crc_tableil8_o40 [256]
 
static uint32_t sctp_crc_tableil8_o48 [256]
 
static uint32_t sctp_crc_tableil8_o56 [256]
 
static uint32_t sctp_crc_tableil8_o64 [256]
 
static uint32_t sctp_crc_tableil8_o72 [256]
 
static uint32_t sctp_crc_tableil8_o80 [256]
 
static uint32_t sctp_crc_tableil8_o88 [256]
 

Function Documentation

__FBSDID ( "$BSDSUniX$"  )
uint32_t calculate_crc32c ( uint32_t  crc32c,
const unsigned char *  buffer,
unsigned int  length 
)

Definition at line 748 of file crc32.c.

References multitable_crc32c(), and singletable_crc32c().

Here is the call graph for this function:

static uint32_t crc32c_sb8_64_bit ( uint32_t  crc,
const unsigned char *  p_buf,
uint32_t  length,
uint32_t  init_bytes 
)
static
static uint32_t multitable_crc32c ( uint32_t  crc32c,
const unsigned char *  buffer,
unsigned int  length 
)
static

Definition at line 734 of file crc32.c.

References crc32c_sb8_64_bit().

Referenced by calculate_crc32c().

Here is the call graph for this function:

Here is the caller graph for this function:

static uint32_t singletable_crc32c ( uint32_t  crc,
const void *  buf,
size_t  size 
)
static

Definition at line 205 of file crc32.c.

References crc32Table.

Referenced by calculate_crc32c().

Here is the caller graph for this function:

Variable Documentation

uint32_t crc32_tab[]

Definition at line 51 of file crc32.c.

uint32_t crc32Table[256]
static

Definition at line 137 of file crc32.c.

Referenced by singletable_crc32c().

uint32_t sctp_crc_tableil8_o32[256]
static

Definition at line 243 of file crc32.c.

Referenced by crc32c_sb8_64_bit().

uint32_t sctp_crc_tableil8_o40[256]
static

Definition at line 299 of file crc32.c.

Referenced by crc32c_sb8_64_bit().

uint32_t sctp_crc_tableil8_o48[256]
static

Definition at line 355 of file crc32.c.

Referenced by crc32c_sb8_64_bit().

uint32_t sctp_crc_tableil8_o56[256]
static

Definition at line 411 of file crc32.c.

Referenced by crc32c_sb8_64_bit().

uint32_t sctp_crc_tableil8_o64[256]
static

Definition at line 467 of file crc32.c.

Referenced by crc32c_sb8_64_bit().

uint32_t sctp_crc_tableil8_o72[256]
static

Definition at line 523 of file crc32.c.

Referenced by crc32c_sb8_64_bit().

uint32_t sctp_crc_tableil8_o80[256]
static

Definition at line 579 of file crc32.c.

Referenced by crc32c_sb8_64_bit().

uint32_t sctp_crc_tableil8_o88[256]
static

Definition at line 635 of file crc32.c.

Referenced by crc32c_sb8_64_bit().