Skip to main content

reduce_128_to_crc

Function reduce_128_to_crc 

Source
unsafe fn reduce_128_to_crc(x: __m128i, input: &[u8], rest: &[u8]) -> u32
Expand description

Finishes a fold: x is input folded up to rest, its unconsumed tail. Folds any remaining 16-byte chunks into x, then a final partial (< 16 byte) block, reduces from 128 to 32 bits with a Barrett reduction, and returns the CRC. Shared by all of the fold implementations. input is at least 16 bytes long.