fn uint16(input: u16) u16 input: u1671
72
73
74
75
76
77
78fn uint16(input: u16) u16 {
var x: u16 = input;
x = (x ^ (x >> 7)) *% 0x2993;
x = (x ^ (x >> 5)) *% 0xe877;
x = (x ^ (x >> 9)) *% 0x0235;
x = x ^ (x >> 10);
return x;
}
Source: https://github.com/skeeto/hash-prospector