Home
last modified time | relevance | path

Searched refs:nb_int (Results 1 – 17 of 17) sorted by relevance

/external/python/cpython2/Objects/
Dintobject.c153 nb->nb_int == NULL) { in PyInt_AsLong()
163 io = (PyIntObject*) (*nb->nb_int) (op); in PyInt_AsLong()
225 (nb->nb_int == NULL && nb->nb_long == 0)) { in PyInt_AsSsize_t()
233 io = (*nb->nb_int)(op); in PyInt_AsSsize_t()
274 nb->nb_int == NULL) { in PyInt_AsUnsignedLongMask()
279 io = (PyIntObject*) (*nb->nb_int) (op); in PyInt_AsUnsignedLongMask()
319 nb->nb_int == NULL) { in PyInt_AsUnsignedLongLongMask()
324 io = (PyIntObject*) (*nb->nb_int) (op); in PyInt_AsUnsignedLongLongMask()
Dlongobject.c254 if (nb == NULL || nb->nb_int == NULL) { in PyLong_AsLongAndOverflow()
259 vv = (*nb->nb_int) (vv); in PyLong_AsLongAndOverflow()
955 nb->nb_int == NULL) { in PyLong_AsLongLong()
959 io = (*nb->nb_int) (vv); in PyLong_AsLongLong()
1072 if (nb == NULL || nb->nb_int == NULL) { in PyLong_AsLongLongAndOverflow()
1077 vv = (*nb->nb_int) (vv); in PyLong_AsLongLongAndOverflow()
Dabstract.c886 (o->ob_type->tp_as_number->nb_int ||
1629 if (m && m->nb_int) { /* This should include subclasses of int */
1631 PyObject *res = m->nb_int(o);
Dtypeobject.c3975 COPYNUM(nb_int);
6136 UNSLOT("__int__", nb_int, slot_nb_int, wrap_unaryfunc,
/external/python/cpython3/Objects/
Dtypeslots.inc27 offsetof(PyHeapTypeObject, as_number.nb_int),
Dabstract.c762 (o->ob_type->tp_as_number->nb_int || in PyNumber_Check()
1359 if (m && m->nb_int) { /* This should include subclasses of int */ in PyNumber_Long()
1380 if (m == NULL || m->nb_int == NULL) { in PyNumber_Long()
Dlongobject.c156 if (nb == NULL || nb->nb_int == NULL) { in _PyLong_FromNbInt()
165 result = nb->nb_int(integral); in _PyLong_FromNbInt()
Dtypeobject.c4986 COPYNUM(nb_int); in inherit_slots()
6893 UNSLOT("__int__", nb_int, slot_nb_int, wrap_unaryfunc,
/external/python/cpython2/PC/
D_subprocess.c671 sp_handle_as_number.nb_int = (unaryfunc) sp_handle_as_int; in init_subprocess()
/external/python/cpython2/Include/
Dobject.h246 unaryfunc nb_int; member
/external/python/cpython3/Include/
Dobject.h261 unaryfunc nb_int; member
/external/python/cpython2/Modules/
D_struct.c135 if (!converted && m != NULL && m->nb_int != NULL) { in get_pylong()
150 v = m->nb_int(v); in get_pylong()
/external/python/cpython2/Python/
Dbltinmodule.c1789 nb->nb_int == NULL) { in get_range_long_argument()
1795 v = nb->nb_int(arg); in get_range_long_argument()
/external/python/cpython3/Doc/c-api/
Dtypeobj.rst1113 unaryfunc nb_int;
/external/python/cpython2/Doc/c-api/
Dtypeobj.rst1172 unaryfunc nb_int;
/external/python/cpython2/Misc/
DHISTORY4594 - operator.isNumberType() now checks that the object has a nb_int or
4854 - PyNumber_Check() now checks that the object has a nb_int or nb_float
/external/python/cpython3/Misc/
DHISTORY21978 - operator.isNumberType() now checks that the object has a nb_int or
22238 - PyNumber_Check() now checks that the object has a nb_int or nb_float