Macros | Functions
crc32.c File Reference
#include "zutil.h"
#include "crc32.h"
Include dependency graph for crc32.c:

Go to the source code of this file.

Macros

#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) */
 
#define local   static
 
#define TBLS   1
 

Functions

unsigned long ZEXPORT crc32 (unsigned long crc, const unsigned char FAR *buf, unsigned len)
 
uLong ZEXPORT crc32_combine (uLong crc1, uLong crc2, z_off_t len2)
 
const unsigned long FAR *ZEXPORT get_crc_table ()
 
void gf2_matrix_square (unsigned long *square, unsigned long *mat)
 
unsigned long gf2_matrix_times (unsigned long *mat, unsigned long vec)
 
unsigned long gf2_matrix_times OF ((unsigned long *mat, unsigned long vec))
 
void gf2_matrix_square OF ((unsigned long *square, unsigned long *mat))
 

Macro Definition Documentation

◆ DO1

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

Definition at line 215 of file crc32.c.

◆ DO8

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

Definition at line 216 of file crc32.c.

◆ GF2_DIM

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

Definition at line 339 of file crc32.c.

◆ local

#define local   static

Definition at line 31 of file crc32.c.

◆ TBLS

#define TBLS   1

Definition at line 64 of file crc32.c.

Function Documentation

◆ crc32()

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

Definition at line 219 of file crc32.c.

◆ crc32_combine()

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

Definition at line 370 of file crc32.c.

◆ get_crc_table()

const unsigned long FAR* ZEXPORT get_crc_table ( )

Definition at line 205 of file crc32.c.

◆ gf2_matrix_square()

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

Definition at line 359 of file crc32.c.

◆ gf2_matrix_times()

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

Definition at line 342 of file crc32.c.

◆ OF() [1/2]

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

◆ OF() [2/2]

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


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:04