mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Removed unnecesssary bit inversion which doesn't improve dispersion statistics (#5235)
This commit is contained in:
parent
05d68a8bd8
commit
fa78806041
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue