Searched refs:Py_uhash_t (Results 1 – 11 of 11) 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()170 Py_uhash_t hash; in _Py_HashBytes()187 hash ^= (Py_uhash_t) _Py_HashSecret.djbx33a.suffix; in _Py_HashBytes()251 Py_uhash_t x; in fnv()254 Py_uhash_t value; in fnv()269 x = (Py_uhash_t) _Py_HashSecret.fnv.prefix; in fnv()270 x ^= (Py_uhash_t) *p << 7; in fnv()[all …]
91 Py_uhash_t94 return (Py_uhash_t)_Py_HashPointerRaw(key); in _Py_hashtable_hash_ptr()134 Py_uhash_t key_hash = ht->hash_func(key); in _Py_hashtable_get_entry_generic()156 Py_uhash_t key_hash = _Py_hashtable_hash_ptr(key); in _Py_hashtable_get_entry_ptr()176 Py_uhash_t key_hash = ht->hash_func(key); in _Py_hashtable_steal()
32 Py_uhash_t key_hash;44 typedef Py_uhash_t (*_Py_hashtable_hash_func) (const void *key);74 PyAPI_FUNC(Py_uhash_t) _Py_hashtable_hash_ptr(const void *key);
346 #define _PyHASH_XXPRIME_1 ((Py_uhash_t)11400714785074694791ULL)347 #define _PyHASH_XXPRIME_2 ((Py_uhash_t)14029467366897019727ULL)348 #define _PyHASH_XXPRIME_5 ((Py_uhash_t)2870177450012600261ULL)351 #define _PyHASH_XXPRIME_1 ((Py_uhash_t)2654435761UL)352 #define _PyHASH_XXPRIME_2 ((Py_uhash_t)2246822519UL)353 #define _PyHASH_XXPRIME_5 ((Py_uhash_t)374761393UL)365 Py_uhash_t acc = _PyHASH_XXPRIME_5; in tuplehash()367 Py_uhash_t lane = PyObject_Hash(item[i]); in tuplehash()368 if (lane == (Py_uhash_t)-1) { in tuplehash()379 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()
659 static Py_uhash_t660 _shuffle_bits(Py_uhash_t h) in _shuffle_bits()675 Py_uhash_t hash = 0; in frozenset_hash()703 hash ^= ((Py_uhash_t)PySet_GET_SIZE(self) + 1) * 1927868237UL; in frozenset_hash()710 if (hash == (Py_uhash_t)-1) in frozenset_hash()
3045 Py_uhash_t x; in long_hash()3094 if (x == (Py_uhash_t)-1) in long_hash()3095 x = (Py_uhash_t)-2; in long_hash()
11870 Py_uhash_t x; /* Unsigned for defined overflow behavior. */ in unicode_hash()
73 Py_uhash_t hash;208 static Py_uhash_t230 static Py_uhash_t234 return (Py_uhash_t)key; in hashtable_hash_uint()264 static Py_uhash_t361 static Py_uhash_t365 Py_uhash_t x, y; /* Unsigned for defined overflow behavior. */ in traceback_hash()367 Py_uhash_t mult = _PyHASH_MULTIPLIER; in traceback_hash()373 y = (Py_uhash_t)PyObject_Hash(frame->filename); in traceback_hash()374 y ^= (Py_uhash_t)frame->lineno; in traceback_hash()[all …]
113 static Py_uhash_t
117 typedef size_t Py_uhash_t; typedef