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

(cherry picked from commit fa78806041)
This commit is contained in:
Miss Islington (bot) 2018-01-18 14:27:22 -08:00 committed by Raymond Hettinger
parent ccf7f05c5d
commit 051650ab8d

View file

@ -790,7 +790,7 @@ frozenset_hash(PyObject *self)
hash ^= ((Py_uhash_t)PySet_GET_SIZE(self) + 1) * 1927868237UL; hash ^= ((Py_uhash_t)PySet_GET_SIZE(self) + 1) * 1927868237UL;
/* Disperse patterns arising in nested frozensets */ /* Disperse patterns arising in nested frozensets */
hash ^= (hash >> 11) ^ (~hash >> 25); hash ^= (hash >> 11) ^ (hash >> 25);
hash = hash * 69069U + 907133923UL; hash = hash * 69069U + 907133923UL;
/* -1 is reserved as an error code */ /* -1 is reserved as an error code */