Commit fa788060 authored by Raymond Hettinger's avatar Raymond Hettinger Committed by GitHub

Removed unnecesssary bit inversion which doesn't improve dispersion statistics (#5235)

parent 05d68a8b
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment