Skip to content

Commit fa78806

Browse files
authored
Removed unnecesssary bit inversion which doesn't improve dispersion statistics (#5235)
1 parent 05d68a8 commit fa78806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/setobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ frozenset_hash(PyObject *self)
795795
hash ^= ((Py_uhash_t)PySet_GET_SIZE(self) + 1) * 1927868237UL;
796796

797797
/* Disperse patterns arising in nested frozensets */
798-
hash ^= (hash >> 11) ^ (~hash >> 25);
798+
hash ^= (hash >> 11) ^ (hash >> 25);
799799
hash = hash * 69069U + 907133923UL;
800800

801801
/* -1 is reserved as an error code */

0 commit comments

Comments
 (0)