From fa7880604191f81cbdddc191216f7b1e39a74d8d Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 18 Jan 2018 13:23:27 -0800 Subject: Removed unnecesssary bit inversion which doesn't improve dispersion statistics (#5235) --- Objects/setobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/setobject.c b/Objects/setobject.c index 4bc1020..47db6b2 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -795,7 +795,7 @@ frozenset_hash(PyObject *self) hash ^= ((Py_uhash_t)PySet_GET_SIZE(self) + 1) * 1927868237UL; /* Disperse patterns arising in nested frozensets */ - hash ^= (hash >> 11) ^ (~hash >> 25); + hash ^= (hash >> 11) ^ (hash >> 25); hash = hash * 69069U + 907133923UL; /* -1 is reserved as an error code */ -- cgit v0.12