Home
last modified time | relevance | path

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

/third_party/python/Python/
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) *p << 7; in fnv()
[all …]
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/
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/
Dtupleobject.c392 #define _PyHASH_XXPRIME_1 ((Py_uhash_t)11400714785074694791ULL)
393 #define _PyHASH_XXPRIME_2 ((Py_uhash_t)14029467366897019727ULL)
394 #define _PyHASH_XXPRIME_5 ((Py_uhash_t)2870177450012600261ULL)
397 #define _PyHASH_XXPRIME_1 ((Py_uhash_t)2654435761UL)
398 #define _PyHASH_XXPRIME_2 ((Py_uhash_t)2246822519UL)
399 #define _PyHASH_XXPRIME_5 ((Py_uhash_t)374761393UL)
411 Py_uhash_t acc = _PyHASH_XXPRIME_5; in tuplehash()
413 Py_uhash_t lane = PyObject_Hash(item[i]); in tuplehash()
414 if (lane == (Py_uhash_t)-1) { in tuplehash()
425 if (acc == (Py_uhash_t)-1) { in tuplehash()
Dcomplexobject.c407 Py_uhash_t hashreal, hashimag, combined; in complex_hash()
408 hashreal = (Py_uhash_t)_Py_HashDouble((PyObject *) v, v->cval.real); in complex_hash()
409 if (hashreal == (Py_uhash_t)-1) in complex_hash()
411 hashimag = (Py_uhash_t)_Py_HashDouble((PyObject *)v, v->cval.imag); in complex_hash()
412 if (hashimag == (Py_uhash_t)-1) in complex_hash()
421 if (combined == (Py_uhash_t)-1) in complex_hash()
422 combined = (Py_uhash_t)-2; in complex_hash()
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()
Dlongobject.c2944 Py_uhash_t x; in long_hash()
2993 if (x == (Py_uhash_t)-1) in long_hash()
2994 x = (Py_uhash_t)-2; in long_hash()
Dunicodeobject.c12142 Py_uhash_t x; /* Unsigned for defined overflow behavior. */ in unicode_hash()
/third_party/python/Modules/
D_tracemalloc.c73 Py_uhash_t hash;
208 static Py_uhash_t
230 static Py_uhash_t
234 return (Py_uhash_t)key; in hashtable_hash_uint()
264 static Py_uhash_t
361 static Py_uhash_t
365 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 …]
D_testinternalcapi.c151 static Py_uhash_t
D_hashopenssl.c139 static Py_uhash_t
/third_party/python/Include/
Dpyport.h119 typedef size_t Py_uhash_t; typedef