summaryrefslogtreecommitdiff
path: root/AK/HashFunctions.h
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-01-20 15:25:33 -0500
committerJelle Raaijmakers <jelle@gmta.nl>2023-01-21 10:36:14 +0100
commit4f5353cbb8f01e17d0cc09a0244d9dc2ef4c37f2 (patch)
treeaa52063ad49ff21d9b0ef4ae0797283063130f7f /AK/HashFunctions.h
parentdbc04bbf1ba6c5c2a00459262423dccdadcab403 (diff)
downloadserenity-4f5353cbb8f01e17d0cc09a0244d9dc2ef4c37f2.zip
AK: Rename double_hash to rehash_for_collision
The name is currently quite confusing as it indicates it hashes doubles.
Diffstat (limited to 'AK/HashFunctions.h')
-rw-r--r--AK/HashFunctions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/HashFunctions.h b/AK/HashFunctions.h
index f20e446589..b36fd1d60a 100644
--- a/AK/HashFunctions.h
+++ b/AK/HashFunctions.h
@@ -19,7 +19,7 @@ constexpr unsigned int_hash(u32 key)
return key;
}
-constexpr unsigned double_hash(u32 key)
+constexpr unsigned rehash_for_collision(u32 key)
{
unsigned const magic = 0xBA5EDB01;
if (key == magic)