Home
last modified time | relevance | path

Searched refs:nb_float (Results 1 – 15 of 15) sorted by relevance

/external/python/cpython3/Objects/
Dcomplexobject.c993 if (nbr == NULL || nbr->nb_float == NULL) { in complex_new_impl()
1005 if (nbi == NULL || nbi->nb_float == NULL) { in complex_new_impl()
1061 tmp = (*nbi->nb_float)(i); in complex_new_impl()
Dtypeslots.inc12 offsetof(PyHeapTypeObject, as_number.nb_float),
Dabstract.c763 o->ob_type->tp_as_number->nb_float); in PyNumber_Check()
1447 if (m && m->nb_float) { /* This should include subclasses of float */ in PyNumber_Float()
1448 PyObject *res = m->nb_float(o); in PyNumber_Float()
Dfloatobject.c248 if (nb == NULL || nb->nb_float == NULL) { in PyFloat_AsDouble()
254 res = (*nb->nb_float) (op); in PyFloat_AsDouble()
Dtypeobject.c4987 COPYNUM(nb_float); in inherit_slots()
6895 UNSLOT("__float__", nb_float, slot_nb_float, wrap_unaryfunc,
/external/python/cpython2/Objects/
Dcomplexobject.c1189 if (nbr == NULL || nbr->nb_float == NULL || in complex_new()
1190 ((i != NULL) && (nbi == NULL || nbi->nb_float == NULL))) { in complex_new()
1248 tmp = (*nbi->nb_float)(i); in complex_new()
Dabstract.c887 o->ob_type->tp_as_number->nb_float);
1797 if (m && m->nb_float) { /* This should include subclasses of float */
1798 PyObject *res = m->nb_float(o);
Dfloatobject.c273 if ((nb = Py_TYPE(op)->tp_as_number) == NULL || nb->nb_float == NULL) { in PyFloat_AsDouble()
278 fo = (PyFloatObject*) (*nb->nb_float) (op); in PyFloat_AsDouble()
Dtypeobject.c3977 COPYNUM(nb_float);
6140 UNSLOT("__float__", nb_float, slot_nb_float, wrap_unaryfunc,
/external/python/cpython2/Include/
Dobject.h248 unaryfunc nb_float; member
/external/python/cpython3/Include/
Dobject.h263 unaryfunc nb_float; member
/external/python/cpython3/Doc/c-api/
Dtypeobj.rst1115 unaryfunc nb_float;
/external/python/cpython2/Doc/c-api/
Dtypeobj.rst1174 unaryfunc nb_float;
/external/python/cpython2/Misc/
DHISTORY4595 nb_float slot, rather than simply checking whether it has a non-NULL
4854 - PyNumber_Check() now checks that the object has a nb_int or nb_float
/external/python/cpython3/Misc/
DHISTORY21979 nb_float slot, rather than simply checking whether it has a non-NULL
22238 - PyNumber_Check() now checks that the object has a nb_int or nb_float