Rizin
unix-like reverse engineering framework and cli tools
crc32.h File Reference

Go to the source code of this file.

Functions

static unsigned int crc32 (unsigned int val, const void *ss, int len)
 

Variables

const unsigned int crc32_table [256]
 

Function Documentation

◆ crc32()

static unsigned int crc32 ( unsigned int  val,
const void *  ss,
int  len 
)
inlinestatic

Definition at line 9 of file crc32.h.

10 {
11  const unsigned char *s = ss;
12  while (--len >= 0)
13  val = crc32_table[(val ^ *s++) & 0xff] ^ (val >> 8);
14  return val;
15 }
size_t len
Definition: 6502dis.c:15
ut16 val
Definition: armass64_const.h:6
const unsigned int crc32_table[256]
Definition: crc32.c:42
static RzSocket * s
Definition: rtr.c:28

References crc32_table, len, s, and val.

Variable Documentation

◆ crc32_table

const unsigned int crc32_table[256]
extern

Definition at line 42 of file crc32.c.

Referenced by crc32().