Home
last modified time | relevance | path

Searched refs:PyFloat_Check (Results 1 – 25 of 50) sorted by relevance

12

/external/python/cpython2/Modules/
Dcgensupport.c67 else if (PyFloat_Check(v)) { in extractdouble()
88 else if (PyFloat_Check(v)) { in extractfloat()
/external/python/cpython2/Include/
Dfloatobject.h21 #define PyFloat_Check(op) PyObject_TypeCheck(op, &PyFloat_Type) macro
/external/python/cpython3/Include/
Dfloatobject.h23 #define PyFloat_Check(op) PyObject_TypeCheck(op, &PyFloat_Type) macro
/external/python/cpython2/Objects/
Dcomplexobject.c509 if (PyFloat_Check(obj)) { in to_complex()
773 else if (PyFloat_Check(*pw)) { in complex_coerce()
800 PyFloat_Check(w) || PyComplex_Check(w)) { in complex_richcompare()
830 else if (PyFloat_Check(w)) { in complex_richcompare()
1228 if (!PyFloat_Check(tmp)) { in complex_new()
Dfloatobject.c265 if (op && PyFloat_Check(op)) in PyFloat_AsDouble()
281 if (!PyFloat_Check(fo)) { in PyFloat_AsDouble()
304 if (PyFloat_Check(obj)) \
421 assert(PyFloat_Check(v)); in float_richcompare()
427 if (PyFloat_Check(w)) in float_richcompare()
975 else if (PyFloat_Check(*pw)) { in float_coerce()
1841 assert(PyFloat_Check(tmp)); in float_subtype_new()
/external/python/cpython3/Objects/
Dfloatobject.c243 if (PyFloat_Check(op)) { in PyFloat_AsDouble()
259 if (!PyFloat_Check(res)) { in PyFloat_AsDouble()
288 if (PyFloat_Check(obj)) \
353 assert(PyFloat_Check(v)); in float_richcompare()
359 if (PyFloat_Check(w)) in float_richcompare()
1645 assert(PyFloat_Check(tmp)); in float_subtype_new()
Dcomplexobject.c451 if (PyFloat_Check(obj)) { in to_complex()
656 else if (PyFloat_Check(w)) { in complex_richcompare()
1046 assert(PyFloat_Check(tmp)); in complex_new_impl()
Dabstract.c1453 if (!PyFloat_Check(res)) { in PyNumber_Float()
1473 if (PyFloat_Check(o)) { /* A float subclass with nb_float == NULL */ in PyNumber_Float()
/external/python/cpython3/Python/
Dpytime.c170 if (PyFloat_Check(obj)) { in _PyTime_ObjectToDenominator()
193 if (PyFloat_Check(obj)) { in _PyTime_ObjectToTime_t()
404 if (PyFloat_Check(obj)) { in _PyTime_FromObject()
/external/python/cpython3/Doc/c-api/
Dfloat.rst22 .. c:function:: int PyFloat_Check(PyObject *p)
/external/tensorflow/tensorflow/python/lib/core/
Dpy_seq_tensor.cc63 return PyFloat_Check(obj) || in IsPyFloat()
358 if (TF_PREDICT_TRUE(PyFloat_Check(v))) { in ConvertOneFloat()
Dbfloat16.cc113 if (PyFloat_Check(arg)) { in AsBfloat16()
/external/python/cpython3/Modules/_ctypes/
Dcfield.c359 if (PyFloat_Check(v)) { in get_long()
378 if (PyFloat_Check(v)) { in get_ulong()
396 if (PyFloat_Check(v)) { in get_longlong()
414 if (PyFloat_Check(v)) { in get_ulonglong()
/external/python/cpython2/Modules/_ctypes/
Dcfield.c366 if (PyFloat_Check(v)) { in get_long()
384 if (PyFloat_Check(v)) { in get_ulong()
404 if (PyFloat_Check(v)) { in get_longlong()
422 if (PyFloat_Check(v)) { in get_ulonglong()
/external/python/cpython2/Doc/c-api/
Dfloat.rst24 .. c:function:: int PyFloat_Check(PyObject *p)
/external/python/cpython3/Modules/_io/
Dfileio.c256 if (PyFloat_Check(nameobj)) {
892 if(PyFloat_Check(posobj)) {
Dwinconsoleio.c283 if (PyFloat_Check(nameobj)) { in _io__WindowsConsoleIO___init___impl()
/external/python/cpython2/Modules/_io/
Dfileio.c236 if (PyFloat_Check(nameobj)) { in fileio_init()
775 if(PyFloat_Check(posobj)) { in portable_lseek()
/external/python/cpython3/Modules/_sqlite/
Dstatement.c134 } else if (PyFloat_Check(parameter)) { in pysqlite_statement_bind_parameter()
/external/python/cpython2/Mac/Modules/cf/
Dpycfbridge.c266 if (PyFloat_Check(src)) { in PyCF_Python2CF_simple()
/external/python/cpython2/Modules/_sqlite/
Dstatement.c137 } else if (PyFloat_Check(parameter)) { in pysqlite_statement_bind_parameter()
/external/libxml2/python/
Dtypes.c605 if PyFloat_Check (obj) { in libxml_xmlXPathObjectPtrConvert()
/external/python/cpython2/Python/
Dgetargs.c557 if (PyFloat_Check(arg) && in float_argument_warning()
570 if (PyFloat_Check(arg)) { in float_argument_error()
/external/python/cpython3/Modules/
D_json.c1484 else if (PyFloat_Check(obj)) { in encoder_listencode_obj()
1630 else if (PyFloat_Check(key)) { in encoder_listencode_dict()
D_datetimemodule.c1907 assert(floatobj && PyFloat_Check(floatobj)); in get_float_as_integer_ratio()
2178 else if (PyFloat_Check(right)) in delta_multiply()
2185 else if (PyFloat_Check(left)) in delta_multiply()
2226 else if (PyFloat_Check(right)) in delta_truedivide()
2340 if (PyFloat_Check(num)) { in accum()

12