[Git][ghc/ghc][master] rts: Strip lower three bits when hashing Word instead of lower eight bits

Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC Commits: 58e46da9 by fendor at 2025-08-18T20:13:56-04:00 rts: Strip lower three bits when hashing Word instead of lower eight bits - - - - - 1 changed file: - rts/Hash.c Changes: ===================================== rts/Hash.c ===================================== @@ -81,7 +81,7 @@ hashWord(const HashTable *table, StgWord key) int bucket; /* Strip the boring zero bits */ - key >>= sizeof(StgWord); + key /= sizeof(StgWord); /* Mod the size of the hash table (a power of 2) */ bucket = key & table->mask1; View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/58e46da9dad572b95b4e354d0a0ed25c... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/58e46da9dad572b95b4e354d0a0ed25c... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Marge Bot (@marge-bot)