giant batch BOOOOM

This commit is contained in:
Nikita Edel
2026-03-11 17:28:13 +01:00
parent ed13020cf3
commit 69a8ce84b9
8 changed files with 31 additions and 19 deletions

View File

@@ -9,11 +9,12 @@ struct IntKeyHash
{
int operator() (const int &k) const
{
int h = k;
// 4jcraft added h to be unsigned, to not cast it later
unsigned int h = k;
h += ~(h << 9);
h ^= (((unsigned int)h) >> 14);
h ^= (h >> 14);
h += (h << 4);
h ^= (((unsigned int)h) >> 10);
h ^= (h >> 10);
return h;
}
};