Home
last modified time | relevance | path

Searched refs:Py_uhash_t (Results 1 - 12 of 12) sorted by relevance

/third_party/python/Python/
H A Dpyhash.c96 Py_uhash_t x, y; in _Py_HashDouble()
120 y = (Py_uhash_t)m; /* pull out integer part */ in _Py_HashDouble()
132 if (x == (Py_uhash_t)-1) in _Py_HashDouble()
133 x = (Py_uhash_t)-2; in _Py_HashDouble()
176 Py_uhash_t hash; in _Py_HashBytes()
193 hash ^= (Py_uhash_t) _Py_HashSecret.djbx33a.suffix; in _Py_HashBytes()
253 Py_uhash_t x; in fnv()
256 Py_uhash_t value; in fnv()
271 x = (Py_uhash_t) _Py_HashSecret.fnv.prefix; in fnv()
272 x ^= (Py_uhash_t) * in fnv()
[all...]
H A Dhashtable.c91 Py_uhash_t
94 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()
/third_party/python/Include/internal/
H A Dpycore_hashtable.h32 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);
/third_party/python/Objects/
H A Dtupleobject.c307 #define _PyHASH_XXPRIME_1 ((Py_uhash_t)11400714785074694791ULL)
308 #define _PyHASH_XXPRIME_2 ((Py_uhash_t)14029467366897019727ULL)
309 #define _PyHASH_XXPRIME_5 ((Py_uhash_t)2870177450012600261ULL)
312 #define _PyHASH_XXPRIME_1 ((Py_uhash_t)2654435761UL)
313 #define _PyHASH_XXPRIME_2 ((Py_uhash_t)2246822519UL)
314 #define _PyHASH_XXPRIME_5 ((Py_uhash_t)374761393UL)
326 Py_uhash_t acc = _PyHASH_XXPRIME_5; in tuplehash()
328 Py_uhash_t lane = PyObject_Hash(item[i]); in tuplehash()
329 if (lane == (Py_uhash_t)-1) { in tuplehash()
340 if (acc == (Py_uhash_t) in tuplehash()
[all...]
H A Dcomplexobject.c408 Py_uhash_t hashreal, hashimag, combined; in complex_hash()
409 hashreal = (Py_uhash_t)_Py_HashDouble((PyObject *) v, v->cval.real); in complex_hash()
410 if (hashreal == (Py_uhash_t)-1) in complex_hash()
412 hashimag = (Py_uhash_t)_Py_HashDouble((PyObject *)v, v->cval.imag); in complex_hash()
413 if (hashimag == (Py_uhash_t)-1) in complex_hash()
422 if (combined == (Py_uhash_t)-1) in complex_hash()
423 combined = (Py_uhash_t)-2; in complex_hash()
H A Dsetobject.c673 static Py_uhash_t
674 _shuffle_bits(Py_uhash_t h) in _shuffle_bits()
689 Py_uhash_t hash = 0; in frozenset_hash()
717 hash ^= ((Py_uhash_t)PySet_GET_SIZE(self) + 1) * 1927868237UL; in frozenset_hash()
724 if (hash == (Py_uhash_t)-1) in frozenset_hash()
H A Dlongobject.c3134 Py_uhash_t x; in long_hash()
3183 if (x == (Py_uhash_t)-1) in long_hash()
3184 x = (Py_uhash_t)-2; in long_hash()
H A Dunicodeobject.c11827 Py_uhash_t x; /* Unsigned for defined overflow behavior. */ in unicode_hash()
/third_party/python/Modules/
H A D_tracemalloc.c80 Py_uhash_t hash;
214 static Py_uhash_t
236 static Py_uhash_t
240 return (Py_uhash_t)key; in hashtable_hash_uint()
270 static Py_uhash_t
365 static Py_uhash_t
369 Py_uhash_t x, y; /* Unsigned for defined overflow behavior. */ in traceback_hash()
371 Py_uhash_t mult = _PyHASH_MULTIPLIER; in traceback_hash()
377 y = (Py_uhash_t)PyObject_Hash(frame->filename); in traceback_hash()
378 y ^= (Py_uhash_t)fram in traceback_hash()
[all...]
H A D_testinternalcapi.c158 static Py_uhash_t
H A D_hashopenssl.c139 static Py_uhash_t
/third_party/python/Include/
H A Dpyport.h146 /* Py_uhash_t is the unsigned equivalent needed to calculate numeric hash. */
148 typedef size_t Py_uhash_t; typedef

Completed in 40 milliseconds