mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-111545: Add Py_HashPointer() function (#112096)
* Implement _Py_HashPointerRaw() as a static inline function. * Add Py_HashPointer() tests to test_capi.test_hash. * Keep _Py_HashPointer() function as an alias to Py_HashPointer().
This commit is contained in:
parent
f8852634ed
commit
828451dfde
9 changed files with 103 additions and 22 deletions
|
@ -45,7 +45,7 @@
|
|||
*/
|
||||
|
||||
#include "Python.h"
|
||||
#include "pycore_hashtable.h"
|
||||
#include "pycore_hashtable.h" // export _Py_hashtable_new()
|
||||
#include "pycore_pyhash.h" // _Py_HashPointerRaw()
|
||||
|
||||
#define HASHTABLE_MIN_SIZE 16
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue