MCPcopy Create free account
hub / github.com/FastLED/FastLED / hash_pair

Function hash_pair

src/fl/stl/hash.h:91–96  ·  view source on GitHub ↗

3) Handy two-word hasher

Source from the content-addressed store, hash-verified

89
90// 3) Handy two-word hasher
91static 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
98static inline u32 fast_hash64(u64 x) FL_NOEXCEPT {
99 u32 x1 = static_cast<u32>(x & 0x00000000FFFFFFFF);

Callers 3

fast_hash64Function · 0.85
operator()Method · 0.85
hash.cppFile · 0.85

Calls 1

fast_hash32Function · 0.85

Tested by

no test coverage detected