Home
last modified time | relevance | path

Searched refs:PyFloat_FromDouble (Results 1 – 25 of 87) sorted by relevance

1234

/external/python/cpython3/Objects/
Dfloatobject.c91 PyStructSequence_SET_ITEM(floatinfo, pos++, PyFloat_FromDouble(flag)) in PyFloat_GetInfo()
115 PyFloat_FromDouble(double fval) in PyFloat_FromDouble() function
161 return PyFloat_FromDouble(x); in float_from_string_inner()
543 return PyFloat_FromDouble(a); in float_add()
555 return PyFloat_FromDouble(a); in float_sub()
567 return PyFloat_FromDouble(a); in float_mul()
584 return PyFloat_FromDouble(a); in float_div()
614 return PyFloat_FromDouble(mod); in float_rem()
700 return PyFloat_FromDouble(1.0); in float_pow()
703 return PyFloat_FromDouble(iv); in float_pow()
[all …]
/external/python/cpython2/Include/
Dfloatobject.h31 #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/Include/
Dfloatobject.h27 #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/Objects/
Dfloatobject.c117 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 …]
Dintobject.c673 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/cpython3/Modules/
Dmathmodule.c957 return PyFloat_FromDouble(r); in math_1a()
990 return math_1_to_whatever(arg, func, PyFloat_FromDouble, can_overflow); in math_1()
1029 return PyFloat_FromDouble(r); in math_2()
1375 sum = PyFloat_FromDouble(special_sum); in math_fsum()
1408 sum = PyFloat_FromDouble(hi); in math_fsum()
1840 return PyFloat_FromDouble(r); in math_ldexp_impl()
1917 return PyFloat_FromDouble(result); in loghelper()
2017 return PyFloat_FromDouble(x); in math_fmod_impl()
2031 return PyFloat_FromDouble(r); in math_fmod_impl()
2052 return PyFloat_FromDouble(fabs(x)); in math_hypot_impl()
[all …]
Dresource.c102 PyFloat_FromDouble(doubletime(ru.ru_utime))); in resource_getrusage_impl()
104 PyFloat_FromDouble(doubletime(ru.ru_stime))); in resource_getrusage_impl()
Dtimemodule.c61 return PyFloat_FromDouble(d); in _PyFloat_FromPyTime()
203 return PyFloat_FromDouble(tp.tv_sec + tp.tv_nsec * 1e-9); in time_clock_gettime()
323 return PyFloat_FromDouble(tp.tv_sec + tp.tv_nsec * 1e-9); in time_clock_getres()
1001 return PyFloat_FromDouble((double)tt); in time_mktime()
1496 obj = PyFloat_FromDouble(info.resolution); in time_get_clock_info()
Dcmathmodule.c1017 return PyFloat_FromDouble(phi); in cmath_phase_impl()
1288 PyFloat_FromDouble(Py_MATH_PI)); in PyInit_cmath()
1289 PyModule_AddObject(m, "e", PyFloat_FromDouble(Py_MATH_E)); in PyInit_cmath()
1290 PyModule_AddObject(m, "tau", PyFloat_FromDouble(Py_MATH_TAU)); /* 2pi */ in PyInit_cmath()
1291 PyModule_AddObject(m, "inf", PyFloat_FromDouble(m_inf())); in PyInit_cmath()
1294 PyModule_AddObject(m, "nan", PyFloat_FromDouble(m_nan())); in PyInit_cmath()
Dxxsubtype.c252 return PyFloat_FromDouble((double)(t1-t0) / CLOCKS_PER_SEC); in spam_bench()
D_struct.c286 return PyFloat_FromDouble(x); in unpack_halffloat()
312 return PyFloat_FromDouble(x); in unpack_float()
324 return PyFloat_FromDouble(x); in unpack_double()
501 return PyFloat_FromDouble((double)x); in nu_float()
509 return PyFloat_FromDouble(x); in nu_double()
/external/python/cpython2/Modules/
Dmathmodule.c707 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 …]
Dtimemodule.c136 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()
Dresource.c86 PyFloat_FromDouble(doubletime(ru.ru_utime))); in resource_getrusage()
88 PyFloat_FromDouble(doubletime(ru.ru_stime))); in resource_getrusage()
Dcgensupport.h16 #define mknewfloatobject(x) PyFloat_FromDouble(x)
Dxxsubtype.c252 return PyFloat_FromDouble((double)(t1-t0) / CLOCKS_PER_SEC); in spam_bench()
Dsignalmodule.c128 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()
D_testcapimodule.c1248 return PyFloat_FromDouble(f); in getargs_f()
1257 return PyFloat_FromDouble(d); in getargs_d()
2976 PyModule_AddObject(m, "FLT_MAX", PyFloat_FromDouble(FLT_MAX)); in init_testcapi()
2977 PyModule_AddObject(m, "FLT_MIN", PyFloat_FromDouble(FLT_MIN)); in init_testcapi()
2978 PyModule_AddObject(m, "DBL_MAX", PyFloat_FromDouble(DBL_MAX)); in init_testcapi()
2979 PyModule_AddObject(m, "DBL_MIN", PyFloat_FromDouble(DBL_MIN)); in init_testcapi()
D_struct.c283 return PyFloat_FromDouble(x); in unpack_float()
295 return PyFloat_FromDouble(x); in unpack_double()
464 return PyFloat_FromDouble((double)x); in nu_float()
472 return PyFloat_FromDouble(x); in nu_double()
/external/python/cpython3/Python/
Dstructmember.c46 v = PyFloat_FromDouble((double)*(float*)addr); in PyMember_GetOne()
49 v = PyFloat_FromDouble(*(double*)addr); in PyMember_GetOne()
/external/python/cpython3/Modules/_ctypes/
Dcfield.c1003 return PyFloat_FromDouble(val); in g_get()
1023 return PyFloat_FromDouble(val); in d_get()
1048 return PyFloat_FromDouble(_PyFloat_Unpack8(ptr, 1)); in d_get_sw()
1050 return PyFloat_FromDouble(_PyFloat_Unpack8(ptr, 0)); in d_get_sw()
1071 return PyFloat_FromDouble(val); in f_get()
1096 return PyFloat_FromDouble(_PyFloat_Unpack4(ptr, 1)); in f_get_sw()
1098 return PyFloat_FromDouble(_PyFloat_Unpack4(ptr, 0)); in f_get_sw()
/external/python/cpython2/Python/
Dstructmember.c95 v = PyFloat_FromDouble((double)*(float*)addr); in PyMember_GetOne()
98 v = PyFloat_FromDouble(*(double*)addr); in PyMember_GetOne()
/external/python/cpython2/Modules/_ctypes/
Dcfield.c1023 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/python/cpython3/Doc/c-api/
Dfloat.rst40 .. c:function:: PyObject* PyFloat_FromDouble(double v)
/external/libxml2/python/
Dtypes.c119 ret = PyFloat_FromDouble((double) val); in libxml_doubleWrap()
477 ret = PyFloat_FromDouble(obj->floatval); in libxml_xmlXPathObjectPtrWrap()

1234