MCPcopy Create free account
hub / github.com/Ruddle/Fomos / hash2

Function hash2

app_console/src/main.rs:166–170  ·  view source on GitHub ↗
(x: usize)

Source from the content-addressed store, hash-verified

164}
165
166fn hash2(x: usize) -> usize {
167 let mut x = ((x >> 16) ^ x) * 0x45d9f3b;
168 x = ((x >> 16) ^ x) * 0x45d9f3b;
169 (x >> 16) ^ x
170}
171const KSIZE: usize = 5;
172const KH: isize = (KSIZE / 2) as isize;
173const DIV: isize = 4;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected