[0, 2^hashBits) suitable for indexing
the match finder table.
uint lz4HashIndex(const(ubyte) * p, uint hashBits) nothrow @nogcCompute the LZ4 hash index for the 4-byte sequence at p.
This uses a multiplicative hash (v * 2654435761) >> (32 - hashBits).
p | Pointer to at least 4 bytes of input data. |
hashBits | Number of index bits for the table (e.g. 12..16). |
[0, 2^hashBits) suitable for indexing
the match finder table.