Skip to content

Commit 93cb76d

Browse files
goldvitalycopybara-github
authored andcommitted
Use large 64 bits kMul for 32 bits platforms as well.
That improves hash quality and make it easier to maintain 64 and 32 bits hash quality. PiperOrigin-RevId: 750621032 Change-Id: Ic6c2da6fc40fd39e7157a244f2202bb3dcea66d6
1 parent e5e2a9d commit 93cb76d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

absl/hash/internal/hash.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,8 +1081,7 @@ class ABSL_DLL MixingHashState : public HashStateBase<MixingHashState> {
10811081
};
10821082

10831083
static constexpr uint64_t kMul =
1084-
sizeof(size_t) == 4 ? uint64_t{0xcc9e2d51}
1085-
: uint64_t{0xdcb22ca68cb134ed};
1084+
uint64_t{0xdcb22ca68cb134ed};
10861085

10871086
template <typename T>
10881087
using IntegralFastPath =

0 commit comments

Comments
 (0)