Function forest_filecoin::db::car::forest::index::hash::ideal_slot_ix
source ยท pub fn ideal_slot_ix(hash: NonMaximalU64, num_buckets: NonZeroUsize) -> usize
Expand description
Desired slot for a hash with a given table length
See: https://lemire.me/blog/2016/06/27/a-fast-alternative-to-the-modulo-reduction/