Searched refs:Py_uhash_t (Results 1 – 10 of 10) sorted by relevance
90 Py_uhash_t x, y; in _Py_HashDouble()114 y = (Py_uhash_t)m; /* pull out integer part */ in _Py_HashDouble()126 if (x == (Py_uhash_t)-1) in _Py_HashDouble()127 x = (Py_uhash_t)-2; in _Py_HashDouble()164 Py_uhash_t hash; in _Py_HashBytes()181 hash ^= (Py_uhash_t) _Py_HashSecret.djbx33a.suffix; in _Py_HashBytes()245 Py_uhash_t x; in fnv()248 Py_uhash_t value; in fnv()263 x = (Py_uhash_t) _Py_HashSecret.fnv.prefix; in fnv()264 x ^= (Py_uhash_t) *p << 7; in fnv()[all …]
354 #define _PyHASH_XXPRIME_1 ((Py_uhash_t)11400714785074694791ULL)355 #define _PyHASH_XXPRIME_2 ((Py_uhash_t)14029467366897019727ULL)356 #define _PyHASH_XXPRIME_5 ((Py_uhash_t)2870177450012600261ULL)359 #define _PyHASH_XXPRIME_1 ((Py_uhash_t)2654435761UL)360 #define _PyHASH_XXPRIME_2 ((Py_uhash_t)2246822519UL)361 #define _PyHASH_XXPRIME_5 ((Py_uhash_t)374761393UL)373 Py_uhash_t acc = _PyHASH_XXPRIME_5; in tuplehash()375 Py_uhash_t lane = PyObject_Hash(item[i]); in tuplehash()376 if (lane == (Py_uhash_t)-1) { in tuplehash()387 if (acc == (Py_uhash_t)-1) { in tuplehash()
412 Py_uhash_t hashreal, hashimag, combined; in complex_hash()413 hashreal = (Py_uhash_t)_Py_HashDouble(v->cval.real); in complex_hash()414 if (hashreal == (Py_uhash_t)-1) in complex_hash()416 hashimag = (Py_uhash_t)_Py_HashDouble(v->cval.imag); in complex_hash()417 if (hashimag == (Py_uhash_t)-1) in complex_hash()426 if (combined == (Py_uhash_t)-1) in complex_hash()427 combined = (Py_uhash_t)-2; in complex_hash()
745 static Py_uhash_t746 _shuffle_bits(Py_uhash_t h) in _shuffle_bits()761 Py_uhash_t hash = 0; in frozenset_hash()789 hash ^= ((Py_uhash_t)PySet_GET_SIZE(self) + 1) * 1927868237UL; in frozenset_hash()796 if (hash == (Py_uhash_t)-1) in frozenset_hash()
3094 Py_uhash_t x; in long_hash()3143 if (x == (Py_uhash_t)-1) in long_hash()3144 x = (Py_uhash_t)-2; in long_hash()
11673 Py_uhash_t x; /* Unsigned for defined overflow behavior. */ in unicode_hash()
27 Py_uhash_t key_hash;75 typedef Py_uhash_t (*_Py_hashtable_hash_func) (struct _Py_hashtable_t *ht,105 PyAPI_FUNC(Py_uhash_t) _Py_hashtable_hash_ptr(
80 Py_uhash_t hash;206 static Py_uhash_t232 static Py_uhash_t236 Py_uhash_t hash; in hashtable_hash_pointer_t()240 hash = (Py_uhash_t)_Py_HashPointer((void*)ptr.ptr); in hashtable_hash_pointer_t()287 static Py_uhash_t399 static Py_uhash_t403 Py_uhash_t x, y; /* Unsigned for defined overflow behavior. */ in traceback_hash()405 Py_uhash_t mult = _PyHASH_MULTIPLIER; in traceback_hash()411 y = (Py_uhash_t)PyObject_Hash(frame->filename); in traceback_hash()[all …]
107 Py_uhash_t113 return (Py_uhash_t)_Py_HashPointer(key); in _Py_hashtable_hash_ptr()256 Py_uhash_t key_hash; in _Py_hashtable_get_entry()278 Py_uhash_t key_hash; in _Py_hashtable_pop_entry()315 Py_uhash_t key_hash; in _Py_hashtable_set()
117 typedef size_t Py_uhash_t; typedef