diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2018-01-18 21:23:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-18 21:23:27 (GMT) |
commit | fa7880604191f81cbdddc191216f7b1e39a74d8d (patch) | |
tree | 717374dbca22af768b2333133e291f5a98907e35 /Objects | |
parent | 05d68a8bd84cb141be9f9335f5b3540f15a989c4 (diff) | |
download | cpython-fa7880604191f81cbdddc191216f7b1e39a74d8d.zip cpython-fa7880604191f81cbdddc191216f7b1e39a74d8d.tar.gz cpython-fa7880604191f81cbdddc191216f7b1e39a74d8d.tar.bz2 |
Removed unnecesssary bit inversion which doesn't improve dispersion statistics (#5235)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/setobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c index 4bc1020..47db6b2 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -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 */ |