Expose BitHashMap.

This commit is contained in:
2018-01-04 15:19:45 +01:00
parent 38104e133e
commit 9ce71307d9

View File

@@ -14,6 +14,8 @@ const BITS: u64 = 64;
type Block = u64;
type Storage = HashMap<u64, Block, BitBuildHasher>;
pub type BitHashMap<V> = HashMap<u64, V, BitBuildHasher>;
#[inline]
fn block_bit(x: u64, d: u64) -> (u64, u64) {
(x / d, x % d)