From ff79b92e73999606b1e8a6585368098d93fba3ce Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 18 Jan 2018 12:32:50 -0800 Subject: [PATCH] Removed unnecesssary bit inversion which doesn't improve dispersion statistics --- Objects/setobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/setobject.c b/Objects/setobject.c index 4bc1020d56f77a..47db6b245ca63c 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 */