JenkHash 0.2.1

Bob Jenkins hash functions for Rust with a digest-compatible API.
Documentation
1
2
3
4
5
6
7
8
9
#[inline]
pub const fn rot64(x: u64, k: i32) -> u64 {
    (x << k) | (x >> (64 - k))
}

#[inline]
pub const fn rot32(x: u32, k: u32) -> u32 {
    (x << k) | (x >> (32 - k))
}