Home
last modified time | relevance | path

Searched refs:_PyHASH_BITS (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Include/
Dpyhash.h23 # define _PyHASH_BITS 61 macro
25 # define _PyHASH_BITS 31 macro
28 #define _PyHASH_MODULUS (((size_t)1 << _PyHASH_BITS) - 1)
/external/python/cpython3/Python/
Dpyhash.c111 x = ((x << 28) & _PyHASH_MODULUS) | x >> (_PyHASH_BITS - 28); in _Py_HashDouble()
122 e = e >= 0 ? e % _PyHASH_BITS : _PyHASH_BITS-1-((-1-e) % _PyHASH_BITS); in _Py_HashDouble()
123 x = ((x << e) & _PyHASH_MODULUS) | x >> (_PyHASH_BITS - e); in _Py_HashDouble()
/external/python/cpython3/Modules/_decimal/
D_decimal.c4361 #if defined(CONFIG_64) && _PyHASH_BITS == 61 in _dec_hash()
4369 #elif defined(CONFIG_32) && _PyHASH_BITS == 31 in _dec_hash()
/external/python/cpython3/Objects/
Dlongobject.c2980 (x >> (_PyHASH_BITS - PyLong_SHIFT)); in long_hash()