3) Handy two-word hasher
| 89 | |
| 90 | // 3) Handy two-word hasher |
| 91 | static inline u32 hash_pair(u32 a, u32 b, |
| 92 | u32 seed = 0) FL_NOEXCEPT { |
| 93 | // mix in 'a', then mix in 'b' |
| 94 | u32 h = fast_hash32(seed ^ a); |
| 95 | return fast_hash32(h ^ b); |
| 96 | } |
| 97 | |
| 98 | static inline u32 fast_hash64(u64 x) FL_NOEXCEPT { |
| 99 | u32 x1 = static_cast<u32>(x & 0x00000000FFFFFFFF); |
no test coverage detected