]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40602: Add _Py_HashPointerRaw() function (GH-20056)
authorVictor Stinner <vstinner@python.org>
Tue, 12 May 2020 16:46:20 +0000 (18:46 +0200)
committerGitHub <noreply@github.com>
Tue, 12 May 2020 16:46:20 +0000 (18:46 +0200)
commitf453221c8b80e0570066a9375337f208d50e6406
tree9ea682c978b6a302388c4df1b8174d5188e0b2d2
parent4c9ea093cd752a6687864674d34250653653f743
bpo-40602: Add _Py_HashPointerRaw() function (GH-20056)

Add a new _Py_HashPointerRaw() function which avoids replacing -1
with -2 to micro-optimize hash table using pointer keys: using
_Py_hashtable_hash_ptr() hash function.
Include/pyhash.h
Python/hashtable.c
Python/pyhash.c