TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Macros | Functions
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 POLY   0xedb88320 /* p(x) reflected, with x^32 implied */
 

Functions

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 (void)
 
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

#define N   5

Definition at line 57 of file crc32.c.

Referenced by crc32_z().

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

Definition at line 149 of file crc32.c.

Referenced by multmodp().

#define W   4

Definition at line 85 of file crc32.c.

Referenced by crc32_z().

Function Documentation

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

Definition at line 1015 of file crc32.c.

References crc32_z().

Referenced by deflate(), deflateResetKeep(), inflate(), read_buf(), unzReadCurrentFile(), and zipWriteInFileInZip().

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

Definition at line 1029 of file crc32.c.

References crc32_combine64(), and z_off64_t.

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

Definition at line 1021 of file crc32.c.

References multmodp(), and x2nmodp().

Referenced by crc32_combine().

uLong ZEXPORT crc32_combine_gen ( z_off_t  len2)

Definition at line 1042 of file crc32.c.

References crc32_combine_gen64(), and z_off64_t.

uLong ZEXPORT crc32_combine_gen64 ( z_off64_t  len2)

Definition at line 1034 of file crc32.c.

References x2nmodp().

Referenced by crc32_combine_gen().

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

Definition at line 1047 of file crc32.c.

References multmodp().

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

Definition at line 694 of file crc32.c.

References crc_table, N, W, and Z_NULL.

Referenced by crc32().

const z_crc_t FAR* ZEXPORT get_crc_table ( void  )

Definition at line 549 of file crc32.c.

References crc_table, and FAR.

Referenced by unzOpenCurrentFile3(), and zipOpenNewFileInZip4_64().

local z_crc_t multmodp ( z_crc_t  a,
z_crc_t  b 
)

Definition at line 155 of file crc32.c.

References POLY.

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

local z_crc_t x2nmodp ( z_off64_t  n,
unsigned  k 
)

Definition at line 176 of file crc32.c.

References multmodp(), and x2n_table.

Referenced by crc32_combine64(), and crc32_combine_gen64().