mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:17:42 +00:00
AK: Rename double_hash to rehash_for_collision
The name is currently quite confusing as it indicates it hashes doubles.
This commit is contained in:
parent
dbc04bbf1b
commit
4f5353cbb8
3 changed files with 8 additions and 8 deletions
|
@ -15,11 +15,11 @@ TEST_CASE(int_hash)
|
|||
static_assert(int_hash(0) == 1177991625u);
|
||||
}
|
||||
|
||||
TEST_CASE(double_hash)
|
||||
TEST_CASE(rehash_for_collision)
|
||||
{
|
||||
static_assert(double_hash(666) == 171644115u);
|
||||
static_assert(double_hash(0) == 1189591134u);
|
||||
static_assert(double_hash(0xBA5EDB01) == 0u);
|
||||
static_assert(rehash_for_collision(666) == 171644115u);
|
||||
static_assert(rehash_for_collision(0) == 1189591134u);
|
||||
static_assert(rehash_for_collision(0xBA5EDB01) == 0u);
|
||||
}
|
||||
|
||||
TEST_CASE(pair_int_hash)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue