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

Function hash_u128

perro_source/api_modules/perro_modules/src/random.rs:48–52  ·  view source on GitHub ↗
(value: u128)

Source from the content-addressed store, hash-verified

46
47#[inline]
48pub const fn hash_u128(value: u128) -> u32 {
49 let lower = value as u64;
50 let upper = (value >> 64) as u64;
51 hash_u32(hash_u64(lower) ^ hash_u64(upper))
52}
53
54#[inline]
55pub const fn hash_combine(a: u32, b: u32) -> u32 {

Callers 2

hash_to_u32Method · 0.85

Calls 2

hash_u32Function · 0.70
hash_u64Function · 0.70

Tested by 1