Module zerovec::hashmap::algorithms
source · Functions§
- Compute displacements for the given
key_hashes
, which split the keys into distinct slots by a two-level hashing schema. - Compute hash using [
XxHash64
]. - Calculate the index using (f0, f1), (d0, d1) in modulo m. Returns
None
if d is (0, 0) or modulo is 0 else returns the index computed using (f0 + f1 * d0 + d1) mod m. - Split the 64bit
hash
into (g, f0, f1).