Expose BitHashMap.
This commit is contained in:
@@ -14,6 +14,8 @@ const BITS: u64 = 64;
|
|||||||
type Block = u64;
|
type Block = u64;
|
||||||
type Storage = HashMap<u64, Block, BitBuildHasher>;
|
type Storage = HashMap<u64, Block, BitBuildHasher>;
|
||||||
|
|
||||||
|
pub type BitHashMap<V> = HashMap<u64, V, BitBuildHasher>;
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn block_bit(x: u64, d: u64) -> (u64, u64) {
|
fn block_bit(x: u64, d: u64) -> (u64, u64) {
|
||||||
(x / d, x % d)
|
(x / d, x % d)
|
||||||
|
|||||||
Reference in New Issue
Block a user