Home
last modified time | relevance | path

Searched refs:PyFloat_AS_DOUBLE (Results 1 – 25 of 33) sorted by relevance

12

/external/python/cpython3/Modules/clinic/
Dmathmodule.c.h97 x = PyFloat_AS_DOUBLE(arg); in math_frexp()
137 x = PyFloat_AS_DOUBLE(args[0]); in math_ldexp()
174 x = PyFloat_AS_DOUBLE(arg); in math_modf()
233 x = PyFloat_AS_DOUBLE(args[0]); in math_fma()
243 y = PyFloat_AS_DOUBLE(args[1]); in math_fma()
253 z = PyFloat_AS_DOUBLE(args[2]); in math_fma()
293 x = PyFloat_AS_DOUBLE(args[0]); in math_fmod()
303 y = PyFloat_AS_DOUBLE(args[1]); in math_fmod()
414 x = PyFloat_AS_DOUBLE(args[0]); in math_pow()
424 y = PyFloat_AS_DOUBLE(args[1]); in math_pow()
[all …]
Dcmathmodule.c.h761 r = PyFloat_AS_DOUBLE(args[0]); in cmath_rect()
771 phi = PyFloat_AS_DOUBLE(args[1]); in cmath_rect()
952 rel_tol = PyFloat_AS_DOUBLE(args[2]); in cmath_isclose()
966 abs_tol = PyFloat_AS_DOUBLE(args[3]); in cmath_isclose()
D_testclinic.c.h1050 a = (float) (PyFloat_AS_DOUBLE(args[0])); in float_converter()
1090 a = PyFloat_AS_DOUBLE(args[0]); in double_converter()
/external/python/cpython3/Include/cpython/
Dfloatobject.h15 static inline double PyFloat_AS_DOUBLE(PyObject *op) { in PyFloat_AS_DOUBLE() function
18 #define PyFloat_AS_DOUBLE(op) PyFloat_AS_DOUBLE(_PyObject_CAST(op)) macro
/external/pytorch/torch/csrc/utils/
Dpython_numbers.h151 return PyFloat_AS_DOUBLE(obj); in THPUtils_unpackDouble()
171 return (bool)PyFloat_AS_DOUBLE(obj); in THPUtils_unpackNumberAsBool()
/external/python/cpython3/Python/
Doptimizer_bytecodes.c251 PyFloat_AS_DOUBLE(sym_get_const(left)) + in dummy_func()
252 PyFloat_AS_DOUBLE(sym_get_const(right))); in dummy_func()
274 PyFloat_AS_DOUBLE(sym_get_const(left)) - in dummy_func()
275 PyFloat_AS_DOUBLE(sym_get_const(right))); in dummy_func()
297 PyFloat_AS_DOUBLE(sym_get_const(left)) * in dummy_func()
298 PyFloat_AS_DOUBLE(sym_get_const(right))); in dummy_func()
Doptimizer_cases.c.h395 PyFloat_AS_DOUBLE(sym_get_const(left)) *
396 PyFloat_AS_DOUBLE(sym_get_const(right)));
426 PyFloat_AS_DOUBLE(sym_get_const(left)) +
427 PyFloat_AS_DOUBLE(sym_get_const(right)));
457 PyFloat_AS_DOUBLE(sym_get_const(left)) -
458 PyFloat_AS_DOUBLE(sym_get_const(right)));
Dmarshal.c423 w_float_bin(PyFloat_AS_DOUBLE(v), p); in w_complex_object()
427 w_float_str(PyFloat_AS_DOUBLE(v), p); in w_complex_object()
Dast_unparse.c75 if ((PyFloat_CheckExact(obj) && Py_IS_INFINITY(PyFloat_AS_DOUBLE(obj))) || in append_repr()
Dbltinmodule.c2631 double f_result = PyFloat_AS_DOUBLE(result); in builtin_sum_impl()
2654 double x = PyFloat_AS_DOUBLE(item); in builtin_sum_impl()
Dexecutor_cases.c.h2292 double dleft = PyFloat_AS_DOUBLE(left);
2293 double dright = PyFloat_AS_DOUBLE(right);
/external/python/cpython3/Objects/
Dfloatobject.c295 return PyFloat_AS_DOUBLE(op); in PyFloat_AsDouble()
336 val = PyFloat_AS_DOUBLE(res); in PyFloat_AsDouble()
349 dbl = PyFloat_AS_DOUBLE(obj); \
380 buf = PyOS_double_to_string(PyFloat_AS_DOUBLE(v), in float_repr()
413 i = PyFloat_AS_DOUBLE(v); in float_richcompare()
419 j = PyFloat_AS_DOUBLE(w); in float_richcompare()
910 return PyLong_FromDouble(PyFloat_AS_DOUBLE(self)); in float___trunc___impl()
923 double x = PyFloat_AS_DOUBLE(self); in float___floor___impl()
937 double x = PyFloat_AS_DOUBLE(self); in float___ceil___impl()
Dcodeobject.c2414 double d = PyFloat_AS_DOUBLE(op); in _PyCode_ConstantKey()
2605 double f1 = PyFloat_AS_DOUBLE(op1); in compare_constants()
2606 double f2 = PyFloat_AS_DOUBLE(op2); in compare_constants()
Dabstract.c1669 double val = PyFloat_AS_DOUBLE(res); in PyNumber_Float()
1689 return PyFloat_FromDouble(PyFloat_AS_DOUBLE(o)); in PyNumber_Float()
Dlistobject.c2803 res = PyFloat_AS_DOUBLE(v) < PyFloat_AS_DOUBLE(w); in unsafe_float_compare()
/external/python/cpython3/Modules/_testcapi/clinic/
Dfloat.c.h35 d = PyFloat_AS_DOUBLE(args[1]); in _testcapi_float_pack()
/external/python/cpython3/Modules/
Dmathmodule.c219 target_var = PyFloat_AS_DOUBLE(obj); \
1135 x = PyFloat_AS_DOUBLE(number); in math_ceil()
1204 x = PyFloat_AS_DOUBLE(number); in math_floor()
2872 flt_p = PyFloat_AS_DOUBLE(p_i); in math_sumprod_impl()
2873 flt_q = PyFloat_AS_DOUBLE(q_i); in math_sumprod_impl()
2879 flt_p = PyFloat_AS_DOUBLE(p_i); in math_sumprod_impl()
2886 flt_q = PyFloat_AS_DOUBLE(q_i); in math_sumprod_impl()
3342 double f_result = PyFloat_AS_DOUBLE(result); in math_prod_impl()
3354 f_result *= PyFloat_AS_DOUBLE(item); in math_prod_impl()
D_json.c1328 double i = PyFloat_AS_DOUBLE(obj); in encoder_encode_float()
/external/python/cpython3/Doc/c-api/
Dfloat.rst58 .. c:function:: double PyFloat_AS_DOUBLE(PyObject *pyfloat)
/external/libxml2/python/
Dtypes.c578 ret = xmlXPathNewFloat((double) PyFloat_AS_DOUBLE(obj)); in libxml_xmlXPathObjectPtrConvert()
/external/python/cpython3/Modules/_sqlite/clinic/
Dconnection.c.h94 timeout = PyFloat_AS_DOUBLE(fastargs[1]); in pysqlite_connection_init()
1369 sleep = PyFloat_AS_DOUBLE(args[4]); in pysqlite_connection_backup()
/external/tensorflow/tensorflow/python/lib/core/
Dpy_seq_tensor.cc462 const double as_double = PyFloat_AS_DOUBLE(v); in ConvertOneFloat()
/external/python/cpython3/Python/clinic/
Dsysmodule.c.h440 interval = PyFloat_AS_DOUBLE(arg); in sys_setswitchinterval()
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tensor.cc402 if (!PyFloat_Check(value) || std::isfinite(PyFloat_AS_DOUBLE(value))) { in ConvertToEagerTensor()
/external/python/cpython3/Doc/data/
Drefcounts.dat906 PyFloat_AS_DOUBLE:double:::
907 PyFloat_AS_DOUBLE:PyObject*:pyfloat:0:

12