NCBI C++ ToolKit
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.

Go to the SVN repository for this file.

Go to the SVN repository for this file.

Go to the SVN repository for this file.

Go to the SVN repository for this file.

Go to the SVN repository for this file.

Go to the SVN repository for this file.

Macros

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

Functions

z_crc_t multmodp OF ((z_crc_t a, z_crc_t b))
 
z_crc_t x2nmodp OF ((z_off64_t n, unsigned k))
 
z_crc_t multmodp (z_crc_t a, z_crc_t b)
 
z_crc_t x2nmodp (z_off64_t n, unsigned k)
 
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)
 
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 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 141 of file crc32.c.

◆ W

#define W   4

Definition at line 85 of file crc32.c.

Function Documentation

◆ crc32()

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

Definition at line 1063 of file crc32.c.

References buf, crc32_z(), and len.

◆ crc32_combine()

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

Definition at line 1084 of file crc32.c.

References crc32_combine64().

◆ crc32_combine64()

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

Definition at line 1072 of file crc32.c.

References multmodp(), and x2nmodp().

Referenced by crc32_combine().

◆ crc32_combine_gen()

uLong ZEXPORT crc32_combine_gen ( z_off_t  len2)

Definition at line 1103 of file crc32.c.

References crc32_combine_gen64().

◆ crc32_combine_gen64()

uLong ZEXPORT crc32_combine_gen64 ( z_off64_t  len2)

Definition at line 1093 of file crc32.c.

References x2nmodp().

Referenced by crc32_combine_gen().

◆ crc32_combine_op()

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

Definition at line 1110 of file crc32.c.

References multmodp().

◆ crc32_z()

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

Definition at line 739 of file crc32.c.

References buf, crc_table, len, N, W, and Z_NULL.

Referenced by crc32().

◆ get_crc_table()

const z_crc_t FAR* ZEXPORT get_crc_table ( )

Definition at line 586 of file crc32.c.

References crc_table, and FAR.

◆ multmodp()

z_crc_t multmodp ( z_crc_t  a,
z_crc_t  b 
)

Definition at line 542 of file crc32.c.

References a, b, and POLY.

Referenced by crc32_combine64(), crc32_combine_op(), and x2nmodp().

◆ OF() [1/2]

◆ OF() [2/2]

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

◆ x2nmodp()

z_crc_t x2nmodp ( z_off64_t  n,
unsigned  k 
)

Definition at line 566 of file crc32.c.

References multmodp(), n, and x2n_table.

Referenced by crc32_combine64(), and crc32_combine_gen64().

Modified on Mon Nov 27 00:59:11 2023 by modify_doxy.py rev. 669887
Modified on Tue Nov 28 02:20:47 2023 by modify_doxy.py rev. 669887
Modified on Wed Nov 29 02:17:04 2023 by modify_doxy.py rev. 669887
Modified on Thu Nov 30 04:53:19 2023 by modify_doxy.py rev. 669887
Modified on Fri Dec 01 04:44:53 2023 by modify_doxy.py rev. 669887
Modified on Sat Dec 02 09:20:27 2023 by modify_doxy.py rev. 669887