Home
last modified time | relevance | path

Searched refs:PyLong_Type (Results 1 – 23 of 23) sorted by relevance

/third_party/python/Objects/
Dboolobject.c88 return PyLong_Type.tp_as_number->nb_and(a, b); in bool_and()
96 return PyLong_Type.tp_as_number->nb_or(a, b); in bool_or()
104 return PyLong_Type.tp_as_number->nb_xor(a, b); in bool_xor()
189 &PyLong_Type, /* tp_base */
Dlistobject.c2097 assert(Py_IS_TYPE(v, &PyLong_Type)); in unsafe_long_compare()
2098 assert(Py_IS_TYPE(w, &PyLong_Type)); in unsafe_long_compare()
2307 if (key_type == &PyLong_Type && in list_sort_impl()
2328 else if (key_type == &PyLong_Type && ints_are_bounded) { in list_sort_impl()
Dlongobject.c143 _PyObject_InitVar((PyVarObject*)result, &PyLong_Type, size); in _PyLong_New()
4963 if (type != &PyLong_Type) in long_new_impl()
5014 assert(PyType_IsSubtype(type, &PyLong_Type)); in long_subtype_new()
5015 tmp = (PyLongObject *)long_new_impl(&PyLong_Type, x, obase); in long_subtype_new()
5542 if (long_obj != NULL && type != &PyLong_Type) { in int_from_bytes_impl()
5649 PyTypeObject PyLong_Type = { variable
Dfloatobject.c1545 PyNumberMethods *long_methods = PyLong_Type.tp_as_number; in float_as_integer_ratio_impl()
Dobject.c1837 INIT_TYPE(PyLong_Type); in _PyTypes_Init()
Dtypeobject.c5716 else if (PyType_IsSubtype(base, &PyLong_Type)) { in inherit_special()
7463 h = PyLong_Type.tp_hash(res); in slot_tp_hash()
/third_party/python/Include/
Dlongobject.h12 PyAPI_DATA(PyTypeObject) PyLong_Type;
16 #define PyLong_CheckExact(op) Py_IS_TYPE(op, &PyLong_Type)
/third_party/python/Modules/_sqlite/
Dmodule.c167 if (type == &PyLong_Type || type == &PyFloat_Type in pysqlite_register_adapter_impl()
/third_party/python/Modules/
D_testcapimodule.c1097 newfunc tp_new = PyType_GetSlot(&PyLong_Type, Py_tp_new); in test_get_statictype_slots()
1098 if (PyLong_Type.tp_new != tp_new) { in test_get_statictype_slots()
1103 reprfunc tp_repr = PyType_GetSlot(&PyLong_Type, Py_tp_repr); in test_get_statictype_slots()
1104 if (PyLong_Type.tp_repr != tp_repr) { in test_get_statictype_slots()
1109 ternaryfunc tp_call = PyType_GetSlot(&PyLong_Type, Py_tp_call); in test_get_statictype_slots()
1115 binaryfunc nb_add = PyType_GetSlot(&PyLong_Type, Py_nb_add); in test_get_statictype_slots()
1116 if (PyLong_Type.tp_as_number->nb_add != nb_add) { in test_get_statictype_slots()
1121 lenfunc mp_length = PyType_GetSlot(&PyLong_Type, Py_mp_length); in test_get_statictype_slots()
1127 void *over_value = PyType_GetSlot(&PyLong_Type, Py_bf_releasebuffer + 1); in test_get_statictype_slots()
1133 tp_new = PyType_GetSlot(&PyLong_Type, 0); in test_get_statictype_slots()
D_json.c987 else if (!is_float && s->parse_int != (PyObject *) &PyLong_Type) in _match_number_unicode()
1420 PyObject *encoded = PyLong_Type.tp_repr(obj); in encoder_listencode_obj()
1583 kstr = PyLong_Type.tp_repr(key); in encoder_listencode_dict()
Dsocketmodule.c4659 &PyLong_Type, &opobj, &iv,
4660 &PyLong_Type, &assoclenobj, &flags)) {
D_pickle.c4292 else if (type == &PyLong_Type) { in save()
/third_party/python/Doc/c-api/
Dlong.rst21 .. c:var:: PyTypeObject PyLong_Type
/third_party/python/Doc/data/
Dstable_abi.dat359 var,PyLong_Type,3.2,
/third_party/python/PC/
Dpython3dll.c830 EXPORT_DATA(PyLong_Type)
/third_party/python/Modules/_decimal/
D_decimal.c5692 _py_long_multiply = PyLong_Type.tp_as_number->nb_multiply; in PyInit__decimal()
5693 _py_long_floor_divide = PyLong_Type.tp_as_number->nb_floor_divide; in PyInit__decimal()
5694 _py_long_power = PyLong_Type.tp_as_number->nb_power; in PyInit__decimal()
5698 ASSIGN_PTR(_py_long_bit_length, cfunc_noargs(&PyLong_Type, "bit_length")); in PyInit__decimal()
/third_party/python/Python/
Dpystate.c1915 if (_register_xidata(xidregistry, &PyLong_Type, _long_shared) != 0) { in _register_builtins_for_crossinterpreter_data()
Dbltinmodule.c3025 SETBUILTIN("int", &PyLong_Type); in _PyBuiltin_Init()
/third_party/python/Modules/cjkcodecs/
Dmultibytecodec.c1250 &buffer, &PyLong_Type, &statelong)) in _multibytecodec_MultibyteIncrementalDecoder_setstate_impl()
/third_party/python/Misc/
Dstable_abi.txt870 data PyLong_Type
/third_party/python/Tools/c-analyzer/
DTODO860 Objects/longobject.c:PyLong_Type PyTypeObject PyLong_Type
/third_party/python/Lib/test/
Dclinic.test135 a: object(subclass_of="&PyLong_Type")
/third_party/python/Tools/c-analyzer/cpython/
Dignored.tsv1641 Objects/longobject.c - PyLong_Type -