mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +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
Notes:
sideshowbarker
2024-07-17 18:06:52 +09:00
Author: https://github.com/trflynn89
Commit: 4f5353cbb8
Pull-request: https://github.com/SerenityOS/serenity/pull/17111
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/bgianfo ✅
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