(n: usize)
| 157 | } |
| 158 | |
| 159 | fn hash(n: usize) -> usize { |
| 160 | // integer hash copied from Hugo Elias |
| 161 | let n = (n << 13) ^ n; |
| 162 | let n = n.wrapping_mul(n.wrapping_mul(n).wrapping_mul(15731) + 789221) + 1376312589; |
| 163 | n |
| 164 | } |
| 165 | |
| 166 | fn hash2(x: usize) -> usize { |
| 167 | let mut x = ((x >> 16) ^ x) * 0x45d9f3b; |
nothing calls this directly
no outgoing calls
no test coverage detected