Home
last modified time | relevance | path

Searched refs:ob_shash (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython3/Include/cpython/
Dbytesobject.h7 Py_hash_t ob_shash; member
/external/python/cpython2/Objects/
Ddictobject.c717 (hash = ((PyStringObject *) key)->ob_shash) == -1) in PyDict_GetItem()
767 (hash = ((PyStringObject *) key)->ob_shash) == -1) in _PyDict_GetItemWithError()
839 hash = ((PyStringObject *)key)->ob_shash; in PyDict_SetItem()
880 (hash = ((PyStringObject *) key)->ob_shash) == -1) { in PyDict_DelItem()
912 (hash = ((PyStringObject *) key)->ob_shash) == -1) { in _PyDict_DelItemIf()
1247 (hash = ((PyStringObject *) key)->ob_shash) == -1) { in dict_subscript()
1998 (hash = ((PyStringObject *) key)->ob_shash) == -1) { in dict_contains()
2031 (hash = ((PyStringObject *) key)->ob_shash) == -1) { in dict_get()
2060 (hash = ((PyStringObject *) key)->ob_shash) == -1) { in dict_setdefault()
2105 (hash = ((PyStringObject *) key)->ob_shash) == -1) { in dict_pop()
[all …]
Dbytesobject.c89 op->ob_shash = -1; in _PyBytes_FromSize()
167 op->ob_shash = -1; in PyBytes_FromString()
1511 op->ob_shash = -1; in bytes_repeat()
1659 if (a->ob_shash == -1) { in bytes_hash()
1661 a->ob_shash = _Py_HashBytes(a->ob_sval, Py_SIZE(a)); in bytes_hash()
1663 return a->ob_shash; in bytes_hash()
2817 ((PyBytesObject *)pnew)->ob_shash = in bytes_subtype_new()
2818 ((PyBytesObject *)tmp)->ob_shash; in bytes_subtype_new()
2984 sv->ob_shash = -1; /* invalidate cached hash value */ in _PyBytes_Resize()
Dstringobject.c92 op->ob_shash = -1; in PyString_FromStringAndSize()
147 op->ob_shash = -1; in PyString_FromString()
1071 op->ob_shash = -1; in string_concat()
1113 op->ob_shash = -1; in string_repeat()
1278 if (a->ob_shash != -1) in string_hash()
1279 return a->ob_shash; in string_hash()
1286 a->ob_shash = 0; in string_hash()
1298 a->ob_shash = x; in string_hash()
3724 ((PyStringObject *)pnew)->ob_shash = in str_subtype_new()
3725 ((PyStringObject *)tmp)->ob_shash; in str_subtype_new()
[all …]
Dsetobject.c383 (hash = ((PyStringObject *) key)->ob_shash) == -1) { in set_add_key()
430 (hash = ((PyStringObject *) key)->ob_shash) == -1) { in set_discard_key()
692 (hash = ((PyStringObject *) key)->ob_shash) == -1) { in set_contains_key()
Dtypeobject.c23 ((PyStringObject *)(name))->ob_shash)
2593 assert(((PyStringObject *)(name))->ob_shash != -1); in _PyType_Lookup()
/external/python/cpython2/Include/
Dstringobject.h37 long ob_shash; member
/external/python/cpython3/Objects/
Dbytesobject.c85 op->ob_shash = -1; in _PyBytes_FromSize()
154 op->ob_shash = -1; in PyBytes_FromString()
1439 op->ob_shash = -1; in bytes_repeat()
1572 if (a->ob_shash == -1) { in bytes_hash()
1574 a->ob_shash = _Py_HashBytes(a->ob_sval, Py_SIZE(a)); in bytes_hash()
1576 return a->ob_shash; in bytes_hash()
2863 ((PyBytesObject *)pnew)->ob_shash = in bytes_subtype_new()
2864 ((PyBytesObject *)tmp)->ob_shash; in bytes_subtype_new()
3046 sv->ob_shash = -1; /* invalidate cached hash value */ in _PyBytes_Resize()
/external/python/cpython2/Python/
Dceval.c2353 long hash = ((PyStringObject *)w)->ob_shash; in PyEval_EvalFrameEx()