decompiler  1.0.0
Functions | Variables
crc32.hh File Reference

Table and function for computing a CRC32. More...

#include "types.h"

Functions

uint4 crc_update (uint4 reg, uint4 val)
 Feed 8 bits into a CRC register. More...
 

Variables

uint4 crc32tab []
 Table for quickly computing a 32-bit Cyclic Redundacy Check (CRC)
 

Detailed Description

Table and function for computing a CRC32.

Function Documentation

uint4 crc_update ( uint4  reg,
uint4  val 
)
inline

Feed 8 bits into a CRC register.

Parameters
regis the current state of the CRC register
valholds 8 bits (least significant) to feed in
Returns
the new value of the register

References crc32tab.

Referenced by DynamicHash::calcHash(), ToOpEdge::hash(), and Scope::hashScopeName().