You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Clean up Hash Functions
Clean up and do fixes to hash functions and newly introduced murmur3 hashes in #61934 * Clean up usage of murmur3 * Fixed usages of binary murmur3 on floats (this is invalid) * Changed DJB2 to use xor (which seems to be better)
This commit is contained in:
@@ -72,7 +72,7 @@ private:
|
||||
|
||||
static uint32_t hash(const Breakpoint &p_val) {
|
||||
uint32_t h = HashMapHasherDefault::hash(p_val.source);
|
||||
return hash_djb2_one_32(p_val.line, h);
|
||||
return hash_murmur3_one_32(p_val.line, h);
|
||||
}
|
||||
bool operator==(const Breakpoint &p_b) const {
|
||||
return (line == p_b.line && source == p_b.source);
|
||||
|
||||
Reference in New Issue
Block a user