lz4HashIndex

private fnuint lz4HashIndex(const(ubyte) * p, uint hashBits) nothrow @nogc

Compute the LZ4 hash index for the 4-byte sequence at p.

This uses a multiplicative hash (v * 2654435761) >> (32 - hashBits).

Parameters

pPointer to at least 4 bytes of input data.
hashBitsNumber of index bits for the table (e.g. 12..16).

Returns

A value in the range [0, 2^hashBits) suitable for indexing

the match finder table.