uint64
Source: https://github.com/jonmaiga/mx3
Function parameters
Parameters
- input:u64
Type definitions in this namespace
Types
Functions in this namespace
Functions
- int
- Integer-to-integer hashing for bit widths <= 256.
Source
Implementation
fn uint64(input: u64) u64 {
var x: u64 = input;
const c = 0xbea225f9eb34556d;
x = (x ^ (x >> 32)) *% c;
x = (x ^ (x >> 29)) *% c;
x = (x ^ (x >> 32)) *% c;
x = x ^ (x >> 29);
return x;
}