MCPcopy Create free account
hub / github.com/PerroEngine/Perro / hash_u64

Function hash_u64

perro_source/api_modules/perro_modules/src/random.rs:36–40  ·  view source on GitHub ↗
(value: u64)

Source from the content-addressed store, hash-verified

34
35#[inline]
36pub const fn hash_u64(value: u64) -> u32 {
37 let lower = value as u32;
38 let upper = (value >> 32) as u32;
39 hash_u32(lower ^ hash_u32(upper))
40}
41
42#[inline]
43pub const fn hash_i64(value: i64) -> u32 {

Callers 3

hash_i64Function · 0.70
hash_u128Function · 0.70
hash_to_u32Method · 0.70

Calls 1

hash_u32Function · 0.70

Tested by

no test coverage detected