Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
crc32.c File Reference
#include "zutil.h"
#include "crc32.h"

Macros

#define TBLS   1
 
#define DO1   crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8)
 
#define DO8   DO1; DO1; DO1; DO1; DO1; DO1; DO1; DO1
 
#define GF2_DIM   32 /* dimension of GF(2) vectors (length of CRC) */
 

Functions

local unsigned long gf2_matrix_times OF ((unsigned long *mat, unsigned long vec))
 
local void gf2_matrix_square OF ((unsigned long *square, unsigned long *mat))
 
local uLong crc32_combine_ OF ((uLong crc1, uLong crc2, z_off64_t len2))
 
const z_crc_t FAR *ZEXPORT get_crc_table ()
 
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)
 
local unsigned long gf2_matrix_times (unsigned long *mat, unsigned long vec)
 
local void gf2_matrix_square (unsigned long *square, unsigned long *mat)
 
local uLong crc32_combine_ (uLong crc1, uLong crc2, z_off64_t len2)
 
uLong ZEXPORT crc32_combine (uLong crc1, uLong crc2, z_off_t len2)
 
uLong ZEXPORT crc32_combine64 (uLong crc1, uLong crc2, z_off64_t len2)
 

Macro Definition Documentation

◆ DO1

#define DO1   crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8)

◆ DO8

#define DO8   DO1; DO1; DO1; DO1; DO1; DO1; DO1; DO1

◆ GF2_DIM

#define GF2_DIM   32 /* dimension of GF(2) vectors (length of CRC) */

◆ TBLS

#define TBLS   1

Function Documentation

◆ crc32()

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

◆ crc32_combine()

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

◆ crc32_combine64()

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

◆ crc32_combine_()

local uLong crc32_combine_ ( uLong crc1,
uLong crc2,
z_off64_t len2 )

◆ crc32_z()

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

◆ get_crc_table()

const z_crc_t FAR *ZEXPORT get_crc_table ( )

◆ gf2_matrix_square()

local void gf2_matrix_square ( unsigned long * square,
unsigned long * mat )

◆ gf2_matrix_times()

local unsigned long gf2_matrix_times ( unsigned long * mat,
unsigned long vec )

◆ OF() [1/3]

local uLong crc32_combine_ OF ( (uLong crc1, uLong crc2, z_off64_t len2) )

◆ OF() [2/3]

local unsigned long gf2_matrix_times OF ( (unsigned long *mat, unsigned long vec) )

◆ OF() [3/3]

local void gf2_matrix_square OF ( (unsigned long *square, unsigned long *mat) )