Function hash

Source
pub fn hash(octets: &[u8]) -> u32
Expand description

Calculate the CRC checksum of the octets using an SIMD implementation if available. If not, a fallback algorithm is used. If the table-fallback feature is enabled this will be a lookup table based algorithm, otherwise a simple loop is used (slowest).

Currently, SIMD is implemented for x86-64 CPU:s with pclmulqdq and sse4.1 support.