/external/python/cpython3/Include/ |
D | floatobject.h | 27 #define Py_RETURN_NAN return PyFloat_FromDouble(Py_NAN) 32 return PyFloat_FromDouble(Py_HUGE_VAL); \ 34 return PyFloat_FromDouble(-Py_HUGE_VAL); \ 45 PyAPI_FUNC(PyObject *) PyFloat_FromDouble(double);
|
/external/python/cpython2/Include/ |
D | floatobject.h | 31 #define Py_RETURN_NAN return PyFloat_FromDouble(Py_NAN) 36 return PyFloat_FromDouble(Py_HUGE_VAL); \ 38 return PyFloat_FromDouble(-Py_HUGE_VAL); \ 51 PyAPI_FUNC(PyObject *) PyFloat_FromDouble(double);
|
/external/python/cpython3/Objects/ |
D | floatobject.c | 92 PyStructSequence_SET_ITEM(floatinfo, pos++, PyFloat_FromDouble(flag)) in PyFloat_GetInfo() 116 PyFloat_FromDouble(double fval) in PyFloat_FromDouble() function 162 return PyFloat_FromDouble(x); in float_from_string_inner() 549 return PyFloat_FromDouble(a); in float_add() 559 return PyFloat_FromDouble(a); in float_sub() 569 return PyFloat_FromDouble(a); in float_mul() 584 return PyFloat_FromDouble(a); in float_div() 612 return PyFloat_FromDouble(mod); in float_rem() 680 return PyFloat_FromDouble(floordiv); in float_floor_div() 704 return PyFloat_FromDouble(1.0); in float_pow() [all …]
|
/external/python/cpython2/Objects/ |
D | floatobject.c | 117 PyStructSequence_SET_ITEM(floatinfo, pos++, PyFloat_FromDouble(flag)) in PyFloat_GetInfo() 141 PyFloat_FromDouble(double fval) in PyFloat_FromDouble() function 230 result = PyFloat_FromDouble(x); in PyFloat_FromString() 644 return PyFloat_FromDouble(a); in float_add() 656 return PyFloat_FromDouble(a); in float_sub() 668 return PyFloat_FromDouble(a); in float_mul() 687 return PyFloat_FromDouble(a); in float_div() 709 return PyFloat_FromDouble(a); in float_classic_div() 744 return PyFloat_FromDouble(mod); in float_rem() 834 return PyFloat_FromDouble(1.0); in float_pow() [all …]
|
D | intobject.c | 673 return PyFloat_FromDouble(yi < 0 ? -0.0 : 0.0); in int_true_divide() 686 return PyFloat_FromDouble((double)xi / (double)yi); in int_true_divide() 996 return PyFloat_FromDouble((double)(v -> ob_ival)); in int_float() 1016 return PyFloat_FromDouble((double)v->ob_ival); in int_float() 1038 return PyFloat_FromDouble(v->ob_ival < 0 ? in int_float()
|
/external/python/cpython2/Modules/ |
D | mathmodule.c | 707 return PyFloat_FromDouble(r); in math_1() 727 return PyFloat_FromDouble(r); in math_1a() 787 return PyFloat_FromDouble(r); in math_2() 1036 sum = PyFloat_FromDouble(special_sum); in math_fsum() 1069 sum = PyFloat_FromDouble(hi); in math_fsum() 1230 return PyFloat_FromDouble(r); in math_ldexp() 1305 return PyFloat_FromDouble(result); in loghelper() 1366 return PyFloat_FromDouble(x); in math_fmod() 1380 return PyFloat_FromDouble(r); in math_fmod() 1400 return PyFloat_FromDouble(fabs(x)); in math_hypot() [all …]
|
D | timemodule.c | 136 return PyFloat_FromDouble(secs); in time_time() 158 return PyFloat_FromDouble(((double)clock()) / CLOCKS_PER_SEC); in time_clock() 178 return PyFloat_FromDouble(((double)clock()) / in time_clock() 185 return PyFloat_FromDouble(diff / divisor); in time_clock() 742 return PyFloat_FromDouble((double)tt); in time_mktime()
|
D | resource.c | 86 PyFloat_FromDouble(doubletime(ru.ru_utime))); in resource_getrusage() 88 PyFloat_FromDouble(doubletime(ru.ru_stime))); in resource_getrusage()
|
D | cgensupport.h | 16 #define mknewfloatobject(x) PyFloat_FromDouble(x)
|
D | xxsubtype.c | 252 return PyFloat_FromDouble((double)(t1-t0) / CLOCKS_PER_SEC); in spam_bench()
|
D | signalmodule.c | 128 if(!(v = PyFloat_FromDouble(double_from_timeval(&iv->it_value)))) { in itimer_retval() 135 if(!(v = PyFloat_FromDouble(double_from_timeval(&iv->it_interval)))) { in itimer_retval()
|
/external/python/cpython3/Modules/ |
D | mathmodule.c | 1065 return PyFloat_FromDouble(r); in math_1a() 1098 return math_1_to_whatever(arg, func, PyFloat_FromDouble, can_overflow); in math_1() 1133 return PyFloat_FromDouble(r); in math_2() 1493 sum = PyFloat_FromDouble(special_sum); in math_fsum() 1526 sum = PyFloat_FromDouble(hi); in math_fsum() 2243 return PyFloat_FromDouble(r); in math_ldexp_impl() 2318 return PyFloat_FromDouble(result); in loghelper() 2418 return PyFloat_FromDouble(x); in math_fmod_impl() 2430 return PyFloat_FromDouble(r); in math_fmod_impl() 2576 return PyFloat_FromDouble(result); in math_dist_impl() [all …]
|
D | resource.c | 99 PyFloat_FromDouble(doubletime(ru.ru_utime))); in resource_getrusage_impl() 101 PyFloat_FromDouble(doubletime(ru.ru_stime))); in resource_getrusage_impl()
|
D | timemodule.c | 73 return PyFloat_FromDouble(d); in _PyFloat_FromPyTime() 192 return PyFloat_FromDouble(tp.tv_sec + tp.tv_nsec * 1e-9); 312 return PyFloat_FromDouble(tp.tv_sec + tp.tv_nsec * 1e-9); 1047 return PyFloat_FromDouble((double)tt); 1612 obj = PyFloat_FromDouble(info.resolution);
|
D | xxsubtype.c | 252 return PyFloat_FromDouble((double)(t1-t0) / CLOCKS_PER_SEC); in spam_bench()
|
D | cmathmodule.c | 1013 return PyFloat_FromDouble(phi); in cmath_phase_impl() 1280 PyFloat_FromDouble(Py_MATH_PI)); in PyInit_cmath() 1281 PyModule_AddObject(m, "e", PyFloat_FromDouble(Py_MATH_E)); in PyInit_cmath() 1282 PyModule_AddObject(m, "tau", PyFloat_FromDouble(Py_MATH_TAU)); /* 2pi */ in PyInit_cmath() 1283 PyModule_AddObject(m, "inf", PyFloat_FromDouble(m_inf())); in PyInit_cmath() 1286 PyModule_AddObject(m, "nan", PyFloat_FromDouble(m_nan())); in PyInit_cmath()
|
/external/python/cpython3/Python/ |
D | structmember.c | 45 v = PyFloat_FromDouble((double)*(float*)addr); in PyMember_GetOne() 48 v = PyFloat_FromDouble(*(double*)addr); in PyMember_GetOne()
|
/external/python/cpython3/Modules/clinic/ |
D | _statisticsmodule.c.h | 63 return_value = PyFloat_FromDouble(_return_value); in _statistics__normal_dist_inv_cdf()
|
/external/python/cffi/cffi/ |
D | _cffi_include.h | 102 #define _cffi_from_c_double PyFloat_FromDouble 103 #define _cffi_from_c_float PyFloat_FromDouble
|
/external/python/cpython2/Python/ |
D | structmember.c | 95 v = PyFloat_FromDouble((double)*(float*)addr); in PyMember_GetOne() 98 v = PyFloat_FromDouble(*(double*)addr); in PyMember_GetOne()
|
/external/python/cpython3/Modules/_ctypes/ |
D | cfield.c | 1000 return PyFloat_FromDouble(val); in g_get() 1020 return PyFloat_FromDouble(val); in d_get() 1045 return PyFloat_FromDouble(_PyFloat_Unpack8(ptr, 1)); in d_get_sw() 1047 return PyFloat_FromDouble(_PyFloat_Unpack8(ptr, 0)); in d_get_sw() 1068 return PyFloat_FromDouble(val); in f_get() 1093 return PyFloat_FromDouble(_PyFloat_Unpack4(ptr, 1)); in f_get_sw() 1095 return PyFloat_FromDouble(_PyFloat_Unpack4(ptr, 0)); in f_get_sw()
|
/external/python/cpython2/Modules/_ctypes/ |
D | cfield.c | 1023 return PyFloat_FromDouble(val); in g_get() 1043 return PyFloat_FromDouble(val); in d_get() 1068 return PyFloat_FromDouble(_PyFloat_Unpack8(ptr, 1)); in d_get_sw() 1070 return PyFloat_FromDouble(_PyFloat_Unpack8(ptr, 0)); in d_get_sw() 1091 return PyFloat_FromDouble(val); in f_get() 1116 return PyFloat_FromDouble(_PyFloat_Unpack4(ptr, 1)); in f_get_sw() 1118 return PyFloat_FromDouble(_PyFloat_Unpack4(ptr, 0)); in f_get_sw()
|
/external/tensorflow/tensorflow/python/framework/ |
D | op_def_util.cc | 274 PyList_SET_ITEM(result.get(), i, PyFloat_FromDouble(list.f(i))); in AttrValueListToPyObject() 346 return Safe_PyObjectPtr(PyFloat_FromDouble(attr_value.f())); in AttrValueToPyObject()
|
/external/python/cpython3/Doc/c-api/ |
D | float.rst | 40 .. c:function:: PyObject* PyFloat_FromDouble(double v)
|
/external/libxml2/python/ |
D | types.c | 119 ret = PyFloat_FromDouble((double) val); in libxml_doubleWrap() 477 ret = PyFloat_FromDouble(obj->floatval); in libxml_xmlXPathObjectPtrWrap()
|