Home
last modified time | relevance | path

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

12

/external/python/cpython3/Objects/
Dboolobject.c64 return PyLong_Type.tp_as_number->nb_and(a, b); in bool_and()
72 return PyLong_Type.tp_as_number->nb_or(a, b); in bool_or()
80 return PyLong_Type.tp_as_number->nb_xor(a, b); in bool_xor()
165 &PyLong_Type, /* tp_base */
Dlongobject.c214 return (PyLongObject*)PyObject_INIT_VAR(result, &PyLong_Type, size); in _PyLong_New()
4800 if (type != &PyLong_Type) in long_new_impl()
4850 assert(PyType_IsSubtype(type, &PyLong_Type)); in long_subtype_new()
4851 tmp = (PyLongObject *)long_new_impl(&PyLong_Type, x, obase); in long_subtype_new()
5273 if (long_obj != NULL && type != &PyLong_Type) { in int_from_bytes_impl()
5379 PyTypeObject PyLong_Type = { variable
5471 if (Py_TYPE(v) == &PyLong_Type) { in _PyLong_Init()
5488 (void)PyObject_INIT(v, &PyLong_Type); in _PyLong_Init()
Dlistobject.c2059 assert(v->ob_type == &PyLong_Type); in unsafe_long_compare()
2256 if (key_type == &PyLong_Type) { in list_sort_impl()
2273 else if (key_type == &PyLong_Type && ints_are_bounded) { in list_sort_impl()
Dbytesobject.c1594 (PyObject*)&PyLong_Type); in bytes_richcompare()
1597 (PyObject*)&PyLong_Type); in bytes_richcompare()
Dfloatobject.c1546 PyNumberMethods *long_methods = PyLong_Type.tp_as_number; in float_as_integer_ratio_impl()
Dobject.c1753 if (PyType_Ready(&PyLong_Type) < 0) in _Py_ReadyTypes()
/external/python/cpython3/Modules/clinic/
D_hashopenssl.c.h37 …&password, &salt, &PyLong_Type, &n_obj, &PyLong_Type, &r_obj, &PyLong_Type, &p_obj, &maxmem, &dkle… in _hashlib_scrypt()
/external/python/cpython2/Objects/
Dintobject.c478 return PyLong_Type.tp_as_number->nb_add((PyObject *)v, (PyObject *)w); in int_add()
491 return PyLong_Type.tp_as_number->nb_subtract((PyObject *)v, in int_sub()
556 return PyLong_Type.tp_as_number->nb_multiply(v, w); in int_mul()
629 return PyLong_Type.tp_as_number->nb_divide((PyObject *)x, in int_div()
650 return PyLong_Type.tp_as_number->nb_divide((PyObject *)x, in int_classic_div()
680 return PyLong_Type.tp_as_number->nb_true_divide( in int_true_divide()
700 return PyLong_Type.tp_as_number->nb_remainder((PyObject *)x, in int_mod()
718 return PyLong_Type.tp_as_number->nb_divmod((PyObject *)x, in int_divmod()
774 return PyLong_Type.tp_as_number->nb_power( in int_pow()
785 return PyLong_Type.tp_as_number->nb_power( in int_pow()
[all …]
Dlongobject.c76 return PyObject_NEW_VAR(PyLongObject, &PyLong_Type, size); in _PyLong_New()
4015 if (type != &PyLong_Type) in long_new()
4073 assert(PyType_IsSubtype(type, &PyLong_Type)); in long_subtype_new()
4074 tmp = (PyLongObject *)long_new(&PyLong_Type, args, kwds); in long_subtype_new()
4316 PyTypeObject PyLong_Type = { variable
Dbytesobject.c1589 (PyObject*)&PyLong_Type); in bytes_richcompare()
1592 (PyObject*)&PyLong_Type); in bytes_richcompare()
Dfloatobject.c1721 PyNumberMethods *long_methods = PyLong_Type.tp_as_number; in float_as_integer_ratio()
/external/python/cpython2/Include/
Dlongobject.h12 PyAPI_DATA(PyTypeObject) PyLong_Type;
16 #define PyLong_CheckExact(op) (Py_TYPE(op) == &PyLong_Type)
/external/python/cpython3/Include/
Dlongobject.h12 PyAPI_DATA(PyTypeObject) PyLong_Type;
16 #define PyLong_CheckExact(op) (Py_TYPE(op) == &PyLong_Type)
/external/python/cpython2/PC/os2vacpp/
Dpython.def50 PyLong_Type
/external/python/cpython2/Modules/_sqlite/
Dmodule.c158 if (type == &PyInt_Type || type == &PyLong_Type || type == &PyFloat_Type in module_register_adapter()
/external/python/cpython3/Modules/_sqlite/
Dmodule.c172 if (type == &PyLong_Type || type == &PyFloat_Type in module_register_adapter()
/external/python/cpython3/Modules/
D_randommodule.c265 n = PyLong_Type.tp_as_number->nb_absolute(arg); in random_seed()
D_json.c1015 else if (!is_float && s->parse_int != (PyObject *) &PyLong_Type) in _match_number_unicode()
1479 PyObject *encoded = PyLong_Type.tp_str(obj); in encoder_listencode_obj()
1643 kstr = PyLong_Type.tp_str(key); in encoder_listencode_dict()
/external/python/cpython2/Modules/
D_randommodule.c240 n = PyLong_Type.tp_as_number->nb_absolute(arg); in random_seed()
/external/python/cpython2/Doc/c-api/
Dlong.rst16 .. c:var:: PyTypeObject PyLong_Type
/external/python/cpython3/PC/
Dpython3.def338 PyLong_Type=python37.PyLong_Type DATA
/external/python/cpython3/Lib/test/
Dclinic.test118 a: object(subclass_of="&PyLong_Type")
163 …&PyLong_Type, &a, &PyTuple_Type, &b, &PyList_Type, &c, &PySet_Type, &d, &PyFrozenSet_Type, &e, &Py…
/external/python/cpython3/Doc/c-api/
Dlong.rst21 .. c:var:: PyTypeObject PyLong_Type
/external/python/cpython2/PC/os2emx/
Dpython27.def420 "PyLong_Type"
/external/python/cpython3/Modules/_decimal/
D_decimal.c5548 _py_long_multiply = PyLong_Type.tp_as_number->nb_multiply; in PyInit__decimal()
5549 _py_long_floor_divide = PyLong_Type.tp_as_number->nb_floor_divide; in PyInit__decimal()
5550 _py_long_power = PyLong_Type.tp_as_number->nb_power; in PyInit__decimal()
5554 ASSIGN_PTR(_py_long_bit_length, cfunc_noargs(&PyLong_Type, "bit_length")); in PyInit__decimal()

12