mirror of
https://github.com/python/cpython.git
synced 2025-10-01 12:52:18 +00:00
Removed unnecesssary bit inversion which doesn't improve dispersion statistics (GH-5235) (#5236)
(cherry picked from commit fa78806041
)
This commit is contained in:
parent
ccf7f05c5d
commit
051650ab8d
1 changed files with 1 additions and 1 deletions
|
@ -790,7 +790,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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue