Home
last modified time | relevance | path

Searched refs:nb_int (Results 1 – 19 of 19) 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.c763 o->ob_type->tp_as_number->nb_int || in PyNumber_Check()
1369 if (m && m->nb_int) { /* This should include subclasses of int */ in PyNumber_Long()
1397 if (m == NULL || (m->nb_index == 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()
208 if (nb == NULL || (nb->nb_index == NULL && nb->nb_int == NULL)) { in _PyLong_FromNbIndexOrNbInt()
Dtypeobject.c5083 COPYNUM(nb_int); in inherit_slots()
7035 UNSLOT("__int__", nb_int, slot_nb_int, wrap_unaryfunc,
/external/python/cpython3/Include/cpython/
Dobject.h116 unaryfunc nb_int; member
/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/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/cffi/c/
D_cffi_backend.c784 nb == NULL || nb->nb_int == NULL) { in _my_PyLong_AsLongLong()
788 io = (*nb->nb_int) (ob); in _my_PyLong_AsLongLong()
837 nb == NULL || nb->nb_int == NULL) { in _my_PyLong_AsUnsignedLongLong()
841 io = (*nb->nb_int) (ob); in _my_PyLong_AsUnsignedLongLong()
3800 if (nb == NULL || (nb->nb_float == NULL && nb->nb_int == NULL)) { in _my_PyObject_AsBool()
3807 io = (*nb->nb_int) (ob); in _my_PyObject_AsBool()
/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.rst274 …| :c:member:`~PyNumberMethods.nb_int` | :c:type:`unaryfunc` | __…
2005 unaryfunc nb_int;
2062 .. c:member:: unaryfunc PyNumberMethods.nb_int
/external/protobuf/python/google/protobuf/pyext/
Dmessage.cc643 if ((nb = arg->ob_type->tp_as_number) != NULL && nb->nb_int != NULL) { in CheckAndGetInteger()
/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