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

Function mix64

perro_source/core/perro_ids/src/ids.rs:60–67  ·  view source on GitHub ↗
(mut x: u64)

Source from the content-addressed store, hash-verified

58}
59
60pub const fn mix64(mut x: u64) -> u64 {
61 x ^= x >> 30;
62 x = x.wrapping_mul(0xBF58476D1CE4E5B9);
63 x ^= x >> 27;
64 x = x.wrapping_mul(0x94D049BB133111EB);
65 x ^= x >> 31;
66 x
67}
68
69/// Error returned when a generational ID string has invalid hex syntax.
70#[derive(Clone, Copy, Debug, PartialEq, Eq)]

Callers 2

ids.rsFile · 0.85
string_to_u64Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected