Function zerovec::hashmap::algorithms::compute_index

source ยท
pub fn compute_index(f: (u32, u32), d: (u32, u32), m: u32) -> Option<usize>
Expand description

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.