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

/external/python/cpython3/Objects/
H A Dboolobject.c63 return PyLong_Type.tp_as_number->nb_and(a, b);
71 return PyLong_Type.tp_as_number->nb_or(a, b);
79 return PyLong_Type.tp_as_number->nb_xor(a, b);
164 &PyLong_Type, /* tp_base */
H A Dlongobject.c202 return (PyLongObject*)PyObject_INIT_VAR(result, &PyLong_Type, size);
4802 if (type != &PyLong_Type)
4855 assert(PyType_IsSubtype(type, &PyLong_Type));
4856 tmp = (PyLongObject *)long_new(&PyLong_Type, args, kwds);
5297 if (type != &PyLong_Type) {
5423 PyTypeObject PyLong_Type = { variable
5515 if (Py_TYPE(v) == &PyLong_Type) {
5532 (void)PyObject_INIT(v, &PyLong_Type);
H A Dbytesobject.c1574 (PyObject*)&PyLong_Type);
1577 (PyObject*)&PyLong_Type);
H A Dobject.c1568 if (PyType_Ready(&PyLong_Type) < 0)
H A Dfloatobject.c1484 PyNumberMethods *long_methods = PyLong_Type.tp_as_number;
H A Dtypeobject.c4684 else if (PyType_IsSubtype(base, &PyLong_Type))
6148 h = PyLong_Type.tp_hash(res);
/external/python/cpython3/Modules/clinic/
H A D_hashopenssl.c.h37 &password, &salt, &PyLong_Type, &n_obj, &PyLong_Type, &r_obj, &PyLong_Type, &p_obj, &maxmem, &dklen)) {
/external/python/cpython2/Include/
H A Dlongobject.h12 PyAPI_DATA(PyTypeObject) PyLong_Type;
16 #define PyLong_CheckExact(op) (Py_TYPE(op) == &PyLong_Type)
/external/python/cpython3/Include/
H A Dlongobject.h12 PyAPI_DATA(PyTypeObject) PyLong_Type;
16 #define PyLong_CheckExact(op) (Py_TYPE(op) == &PyLong_Type)
/external/python/cpython2/Objects/
H A Dintobject.c475 return PyLong_Type.tp_as_number->nb_add((PyObject *)v, (PyObject *)w);
488 return PyLong_Type.tp_as_number->nb_subtract((PyObject *)v,
553 return PyLong_Type.tp_as_number->nb_multiply(v, w);
626 return PyLong_Type.tp_as_number->nb_divide((PyObject *)x,
647 return PyLong_Type.tp_as_number->nb_divide((PyObject *)x,
677 return PyLong_Type.tp_as_number->nb_true_divide(
697 return PyLong_Type.tp_as_number->nb_remainder((PyObject *)x,
715 return PyLong_Type.tp_as_number->nb_divmod((PyObject *)x,
771 return PyLong_Type.tp_as_number->nb_power(
782 return PyLong_Type
[all...]
H A Dlongobject.c76 return PyObject_NEW_VAR(PyLongObject, &PyLong_Type, size);
4015 if (type != &PyLong_Type)
4073 assert(PyType_IsSubtype(type, &PyLong_Type));
4074 tmp = (PyLongObject *)long_new(&PyLong_Type, args, kwds);
4316 PyTypeObject PyLong_Type = { variable
H A Dfloatobject.c1722 PyNumberMethods *long_methods = PyLong_Type.tp_as_number;
H A Dobject.c2141 if (PyType_Ready(&PyLong_Type) < 0)
H A Dtypeobject.c3832 else if (PyType_IsSubtype(base, &PyLong_Type))
5511 h = PyLong_Type.tp_hash(res);
/external/python/cpython2/Modules/_sqlite/
H A Dmodule.c158 if (type == &PyInt_Type || type == &PyLong_Type || type == &PyFloat_Type
/external/python/cpython3/Modules/_sqlite/
H A Dmodule.c165 if (type == &PyLong_Type || type == &PyFloat_Type
/external/python/cpython3/Modules/
H A D_json.c1016 else if (!is_float && s->parse_int != (PyObject *) &PyLong_Type)
1514 PyObject *encoded = PyLong_Type.tp_str(obj);
1682 kstr = PyLong_Type.tp_str(key);
H A Dsocketmodule.c4220 &PyLong_Type, &opobj, &iv,
4221 &PyLong_Type, &assoclenobj, &flags)) {
H A D_pickle.c3808 else if (type == &PyLong_Type) {
/external/python/cpython3/Modules/_decimal/
H A D_decimal.c5676 _py_long_multiply = PyLong_Type.tp_as_number->nb_multiply;
5677 _py_long_floor_divide = PyLong_Type.tp_as_number->nb_floor_divide;
5678 _py_long_power = PyLong_Type.tp_as_number->nb_power;
5682 ASSIGN_PTR(_py_long_bit_length, cfunc_noargs(&PyLong_Type, "bit_length"));
/external/python/cpython3/Python/
H A Dbltinmodule.c2727 SETBUILTIN("int", &PyLong_Type);
/external/python/cpython2/Python/
H A Dbltinmodule.c2728 SETBUILTIN("long", &PyLong_Type);
/external/python/cpython2/Modules/
H A DcPickle.c2619 if (type == &PyLong_Type) {

Completed in 1035 milliseconds