opthash 0.10.4

Rust implementations of Elastic Hashing and Funnel Hashing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Portable SWAR and NEON groups fit eight control bytes in one `u64` mask.
#[cfg(any(opthash_scalar_group, opthash_neon_group))]
pub(crate) const GROUP_SIZE_U32: u32 = 8;
/// SSE scans sixteen control bytes at a time.
#[cfg(opthash_x86_16_group)]
pub(crate) const GROUP_SIZE_U32: u32 = 16;
pub(crate) const GROUP_SIZE: usize = GROUP_SIZE_U32 as usize;
/// Align arena allocations so memset can use cache-line fast paths.
pub(crate) const CACHE_LINE: usize = 64;
/// First-allocation slot count when a map grows from empty.
#[cfg(opthash_neon_group)]
pub(crate) const INITIAL_CAPACITY: usize = 16;
#[cfg(not(opthash_neon_group))]
pub(crate) const INITIAL_CAPACITY: usize = GROUP_SIZE;