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

Function hash64_u64

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

Source from the content-addressed store, hash-verified

83
84#[inline]
85pub const fn hash64_u64(mut value: u64) -> u64 {
86 value ^= value >> 30;
87 value = value.wrapping_mul(0xbf58_476d_1ce4_e5b9);
88 value ^= value >> 27;
89 value = value.wrapping_mul(0x94d0_49bb_1331_11eb);
90 value ^= value >> 31;
91 value
92}
93
94#[inline]
95pub const fn hash64_u32(value: u32) -> u64 {

Callers 5

hash64_u32Function · 0.85
hash64_u128Function · 0.85
hash64_bytesFunction · 0.85
choose_indexFunction · 0.85

Calls

no outgoing calls

Tested by 1