Searched refs:_PyHASH_BITS (Results 1 – 4 of 4) sorted by relevance
25 # define _PyHASH_BITS 61 macro27 # define _PyHASH_BITS 31 macro30 #define _PyHASH_MODULUS (((size_t)1 << _PyHASH_BITS) - 1)
111 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()
4506 #if defined(CONFIG_64) && _PyHASH_BITS == 61 in _dec_hash()4514 #elif defined(CONFIG_32) && _PyHASH_BITS == 31 in _dec_hash()
3088 (x >> (_PyHASH_BITS - PyLong_SHIFT)); in long_hash()