openshot-audio  0.1.6
Macros | Functions
crc32.c File Reference
#include "zutil.h"
#include "crc32.h"

Macros

#define local   static
 
#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) */
 
#define local   static
 
#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))
 
const unsigned long FAR *ZEXPORT get_crc_table ()
 
unsigned long ZEXPORT crc32 (unsigned long crc, const unsigned char FAR *buf, unsigned len)
 
local unsigned long gf2_matrix_times (unsigned long *mat, unsigned long vec)
 
local void gf2_matrix_square (unsigned long *square, unsigned long *mat)
 
uLong ZEXPORT crc32_combine (uLong crc1, uLong crc2, z_off_t len2)
 

Macro Definition Documentation

◆ DO1 [1/2]

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

◆ DO1 [2/2]

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

◆ DO8 [1/2]

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

◆ DO8 [2/2]

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

◆ GF2_DIM [1/2]

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

◆ GF2_DIM [2/2]

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

◆ local [1/2]

#define local   static

◆ local [2/2]

#define local   static

◆ TBLS [1/2]

#define TBLS   1

◆ TBLS [2/2]

#define TBLS   1

Function Documentation

◆ crc32()

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

◆ crc32_combine()

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

◆ get_crc_table()

const unsigned long 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/2]

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

◆ OF() [2/2]

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