/third_party/python/Objects/ |
H A D | boolobject.c | 78 return PyLong_Type.tp_as_number->nb_and(a, b); in bool_and() 86 return PyLong_Type.tp_as_number->nb_or(a, b); in bool_or() 94 return PyLong_Type.tp_as_number->nb_xor(a, b); in bool_xor() 185 &PyLong_Type, /* tp_base */
|
H A D | longobject.c | 21 class int "PyObject *" "&PyLong_Type" 167 _PyObject_InitVar((PyVarObject*)result, &PyLong_Type, size); in _PyLong_New() 210 _PyObject_InitVar((PyVarObject*)v, &PyLong_Type, sign); in _PyLong_FromMedium() 5359 if (type != &PyLong_Type) in long_new_impl() 5410 assert(PyType_IsSubtype(type, &PyLong_Type)); in long_subtype_new() 5411 tmp = (PyLongObject *)long_new_impl(&PyLong_Type, x, obase); in long_subtype_new() 5951 if (long_obj != NULL && type != &PyLong_Type) { in int_from_bytes_impl() 6058 PyTypeObject PyLong_Type = { variable 6165 if (PyType_Ready(&PyLong_Type) < 0) { in _PyLong_InitTypes()
|
H A D | listobject.c | 2166 assert(Py_IS_TYPE(v, &PyLong_Type)); in unsafe_long_compare() 2167 assert(Py_IS_TYPE(w, &PyLong_Type)); in unsafe_long_compare() 2376 if (key_type == &PyLong_Type && in list_sort_impl() 2397 else if (key_type == &PyLong_Type && ints_are_bounded) { in list_sort_impl()
|
H A D | object.c | 1908 &PyLong_Type, 1967 &PyBool_Type, // base=&PyLong_Type
|
H A D | floatobject.c | 1581 PyNumberMethods *long_methods = PyLong_Type.tp_as_number; in float_as_integer_ratio_impl()
|
H A D | typeobject.c | 5813 else if (PyType_IsSubtype(base, &PyLong_Type)) { in inherit_special() 7610 h = PyLong_Type.tp_hash(res); in slot_tp_hash()
|
/third_party/python/Include/ |
H A D | longobject.h | 10 PyAPI_DATA(PyTypeObject) PyLong_Type; 14 #define PyLong_CheckExact(op) Py_IS_TYPE(op, &PyLong_Type)
|
/third_party/python/Modules/ |
H A D | _testcapimodule.c | 1094 newfunc tp_new = PyType_GetSlot(&PyLong_Type, Py_tp_new); in test_get_statictype_slots() 1095 if (PyLong_Type.tp_new != tp_new) { in test_get_statictype_slots() 1100 reprfunc tp_repr = PyType_GetSlot(&PyLong_Type, Py_tp_repr); in test_get_statictype_slots() 1101 if (PyLong_Type.tp_repr != tp_repr) { in test_get_statictype_slots() 1106 ternaryfunc tp_call = PyType_GetSlot(&PyLong_Type, Py_tp_call); in test_get_statictype_slots() 1112 binaryfunc nb_add = PyType_GetSlot(&PyLong_Type, Py_nb_add); in test_get_statictype_slots() 1113 if (PyLong_Type.tp_as_number->nb_add != nb_add) { in test_get_statictype_slots() 1118 lenfunc mp_length = PyType_GetSlot(&PyLong_Type, Py_mp_length); in test_get_statictype_slots() 1124 void *over_value = PyType_GetSlot(&PyLong_Type, Py_bf_releasebuffer + 1); in test_get_statictype_slots() 1130 tp_new = PyType_GetSlot(&PyLong_Type, in test_get_statictype_slots() [all...] |
H A D | _json.c | 989 else if (!is_float && s->parse_int != (PyObject *) &PyLong_Type) in _match_number_unicode() 1422 PyObject *encoded = PyLong_Type.tp_repr(obj); in encoder_listencode_obj() 1585 kstr = PyLong_Type.tp_repr(key); in encoder_listencode_dict()
|
H A D | socketmodule.c | 4714 &PyLong_Type, &opobj, &iv, 4715 &PyLong_Type, &assoclenobj, &flags)) {
|
H A D | _pickle.c | 4308 else if (type == &PyLong_Type) { in save()
|
/third_party/python/Modules/_sqlite/ |
H A D | module.c | 153 if (type == &PyLong_Type || type == &PyFloat_Type in pysqlite_register_adapter_impl()
|
/third_party/python/Include/internal/ |
H A D | pycore_runtime_init.h | 80 _PyVarObject_IMMORTAL_INIT(&PyLong_Type, \
|
/third_party/python/PC/ |
H A D | python3dll.c | 846 EXPORT_DATA(PyLong_Type)
|
/third_party/python/Modules/_decimal/ |
H A D | _decimal.c | 5849 _py_long_multiply = PyLong_Type.tp_as_number->nb_multiply; in PyInit__decimal() 5850 _py_long_floor_divide = PyLong_Type.tp_as_number->nb_floor_divide; in PyInit__decimal() 5851 _py_long_power = PyLong_Type.tp_as_number->nb_power; in PyInit__decimal() 5855 ASSIGN_PTR(_py_long_bit_length, cfunc_noargs(&PyLong_Type, "bit_length")); in PyInit__decimal()
|
/third_party/python/Python/ |
H A D | bltinmodule.c | 3072 SETBUILTIN("int", &PyLong_Type); in _PyBuiltin_Init()
|
H A D | pystate.c | 2107 if (_register_xidata(xidregistry, &PyLong_Type, _long_shared) != 0) { in _register_builtins_for_crossinterpreter_data()
|
/third_party/python/Modules/cjkcodecs/ |
H A D | multibytecodec.c | 959 state as statelong: object(type='PyLongObject *', subclass_of='&PyLong_Type') 1249 &buffer, &PyLong_Type, &statelong)) in _multibytecodec_MultibyteIncrementalDecoder_setstate_impl()
|