OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
crc32.c File Reference
#include "zutil.h"
#include "crc32.h"

Go to the source code of this file.

Macros

#define N   5
 
#define W   4
 
#define W   4
 
#define POLY   0xedb88320 /* p(x) reflected, with x^32 implied */
 

Typedefs

typedef Z_U4 z_word_t
 

Functions

local z_crc_t multmodp OF ((z_crc_t a, z_crc_t b))
 
local z_crc_t x2nmodp OF ((z_off64_t n, unsigned k))
 
local z_word_t byte_swap OF ((z_word_t word))
 
local z_crc_t crc_word OF ((z_word_t data))
 
local z_word_t byte_swap (z_word_t word)
 
local z_crc_t multmodp (z_crc_t a, z_crc_t b)
 
local z_crc_t x2nmodp (z_off64_t n, unsigned k)
 
const z_crc_t FAR *ZEXPORT get_crc_table ()
 
local z_crc_t crc_word (z_word_t data)
 
local z_word_t crc_word_big (z_word_t data)
 
unsigned long ZEXPORT crc32_z (unsigned long crc, const unsigned char FAR *buf, z_size_t len)
 
unsigned long ZEXPORT crc32 (unsigned long crc, const unsigned char FAR *buf, uInt len)
 
uLong ZEXPORT crc32_combine64 (uLong crc1, uLong crc2, z_off64_t len2)
 
uLong ZEXPORT crc32_combine (uLong crc1, uLong crc2, z_off_t len2)
 
uLong ZEXPORT crc32_combine_gen64 (z_off64_t len2)
 
uLong ZEXPORT crc32_combine_gen (z_off_t len2)
 
uLong ZEXPORT crc32_combine_op (uLong crc1, uLong crc2, uLong op)
 

Macro Definition Documentation

◆ N

#define N   5

Definition at line 57 of file crc32.c.

◆ POLY

#define POLY   0xedb88320 /* p(x) reflected, with x^32 implied */

Definition at line 150 of file crc32.c.

◆ W [1/2]

#define W   4

Definition at line 85 of file crc32.c.

◆ W [2/2]

#define W   4

Definition at line 85 of file crc32.c.

Typedef Documentation

◆ z_word_t

typedef Z_U4 z_word_t

Definition at line 95 of file crc32.c.

Function Documentation

◆ byte_swap()

local z_word_t byte_swap ( z_word_t word)

Definition at line 126 of file crc32.c.

◆ crc32()

unsigned long ZEXPORT crc32 ( unsigned long crc,
const unsigned char FAR * buf,
uInt len )

Definition at line 1072 of file crc32.c.

◆ crc32_combine()

uLong ZEXPORT crc32_combine ( uLong crc1,
uLong crc2,
z_off_t len2 )

Definition at line 1093 of file crc32.c.

◆ crc32_combine64()

uLong ZEXPORT crc32_combine64 ( uLong crc1,
uLong crc2,
z_off64_t len2 )

Definition at line 1081 of file crc32.c.

◆ crc32_combine_gen()

uLong ZEXPORT crc32_combine_gen ( z_off_t len2)

Definition at line 1112 of file crc32.c.

◆ crc32_combine_gen64()

uLong ZEXPORT crc32_combine_gen64 ( z_off64_t len2)

Definition at line 1102 of file crc32.c.

◆ crc32_combine_op()

uLong ZEXPORT crc32_combine_op ( uLong crc1,
uLong crc2,
uLong op )

Definition at line 1119 of file crc32.c.

◆ crc32_z()

unsigned long ZEXPORT crc32_z ( unsigned long crc,
const unsigned char FAR * buf,
z_size_t len )

Definition at line 748 of file crc32.c.

◆ crc_word()

local z_crc_t crc_word ( z_word_t data)

Definition at line 726 of file crc32.c.

◆ crc_word_big()

local z_word_t crc_word_big ( z_word_t data)

Definition at line 735 of file crc32.c.

◆ get_crc_table()

const z_crc_t FAR *ZEXPORT get_crc_table ( )

Definition at line 595 of file crc32.c.

◆ multmodp()

local z_crc_t multmodp ( z_crc_t a,
z_crc_t b )

Definition at line 551 of file crc32.c.

◆ OF() [1/4]

◆ OF() [2/4]

local z_crc_t x2nmodp OF ( (z_off64_t n, unsigned k) )

◆ OF() [3/4]

local z_crc_t crc_word OF ( (z_word_t data) )

◆ OF() [4/4]

◆ x2nmodp()

local z_crc_t x2nmodp ( z_off64_t n,
unsigned k )

Definition at line 575 of file crc32.c.