diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-01-18 22:27:22 (GMT) |
---|---|---|
committer | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2018-01-18 22:27:22 (GMT) |
commit | 051650ab8de620dd7e3c557f8227c43439ea8c6a (patch) | |
tree | 8c1ff4c343ac283c82f246fb183bc281fdab5b11 | |
parent | ccf7f05c5d3fdea89d857e775d2c6371f3e15b4a (diff) | |
download | cpython-051650ab8de620dd7e3c557f8227c43439ea8c6a.zip cpython-051650ab8de620dd7e3c557f8227c43439ea8c6a.tar.gz cpython-051650ab8de620dd7e3c557f8227c43439ea8c6a.tar.bz2 |
Removed unnecesssary bit inversion which doesn't improve dispersion statistics (GH-5235) (#5236)
(cherry picked from commit fa7880604191f81cbdddc191216f7b1e39a74d8d)
-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 093a15f..c742041 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -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 */ |