Home
last modified time | relevance | path

Searched refs:Py_IS_FINITE (Results 1 – 17 of 17) sorted by relevance

/external/python/cpython3/Modules/
Dmathmodule.c85 assert(Py_IS_FINITE(x)); in m_sinpi()
270 if (!Py_IS_FINITE(x)) { in m_tgamma()
372 if (!Py_IS_FINITE(x)) { in m_lgamma()
611 if (Py_IS_FINITE(x) && Py_IS_FINITE(y)) { in m_remainder()
708 if (Py_IS_FINITE(x)) { in m_log()
740 if (!Py_IS_FINITE(x)) { in m_log2()
785 if (Py_IS_FINITE(x)) { in m_log10()
924 if (Py_IS_INFINITY(r) && Py_IS_FINITE(x)) { in math_1_to_whatever()
933 if (Py_IS_FINITE(r) && errno && is_error(r)) in math_1_to_whatever()
1021 if (Py_IS_FINITE(x) && Py_IS_FINITE(y)) in math_2()
[all …]
Dcmathmodule.c160 if (Py_IS_FINITE(d)) { in special_type()
183 if (!Py_IS_FINITE((z).real) || !Py_IS_FINITE((z).imag)) { \
491 if (!Py_IS_FINITE(z.real) || !Py_IS_FINITE(z.imag)) { in cmath_cosh_impl()
492 if (Py_IS_INFINITY(z.real) && Py_IS_FINITE(z.imag) && in cmath_cosh_impl()
552 if (!Py_IS_FINITE(z.real) || !Py_IS_FINITE(z.imag)) { in cmath_exp_impl()
553 if (Py_IS_INFINITY(z.real) && Py_IS_FINITE(z.imag) in cmath_exp_impl()
571 (Py_IS_FINITE(z.real) || in cmath_exp_impl()
729 if (!Py_IS_FINITE(z.real) || !Py_IS_FINITE(z.imag)) { in cmath_sinh_impl()
730 if (Py_IS_INFINITY(z.real) && Py_IS_FINITE(z.imag) in cmath_sinh_impl()
899 if (!Py_IS_FINITE(z.real) || !Py_IS_FINITE(z.imag)) { in cmath_tanh_impl()
[all …]
D_json.c1407 if (!Py_IS_FINITE(i)) { in encoder_encode_float()
/external/python/cpython2/Include/
Dpymath.h128 #ifndef Py_IS_FINITE
130 #define Py_IS_FINITE(X) isfinite(X) macro
132 #define Py_IS_FINITE(X) finite(X) macro
134 #define Py_IS_FINITE(X) (!Py_IS_INFINITY(X) && !Py_IS_NAN(X)) macro
/external/python/cpython2/Modules/
Dmathmodule.c79 assert(Py_IS_FINITE(x)); in sinpi()
236 if (!Py_IS_FINITE(x)) { in m_tgamma()
336 if (!Py_IS_FINITE(x)) { in m_lgamma()
569 if (Py_IS_FINITE(x)) { in m_log()
591 if (Py_IS_FINITE(x)) { in m_log10()
699 if (Py_IS_FINITE(x)) in math_1()
779 if (Py_IS_FINITE(x) && Py_IS_FINITE(y)) in math_2()
1008 if (! Py_IS_FINITE(x)) { in math_fsum()
1013 if (Py_IS_FINITE(xsave)) { in math_fsum()
1095 if (!(Py_IS_FINITE(dx) && dx == floor(dx))) { in math_factorial()
[all …]
Dcmathmodule.c78 if (Py_IS_FINITE(d)) { in special_type()
101 if (!Py_IS_FINITE((z).real) || !Py_IS_FINITE((z).imag)) { \
386 if (!Py_IS_FINITE(z.real) || !Py_IS_FINITE(z.imag)) { in c_cosh()
387 if (Py_IS_INFINITY(z.real) && Py_IS_FINITE(z.imag) && in c_cosh()
445 if (!Py_IS_FINITE(z.real) || !Py_IS_FINITE(z.imag)) { in c_exp()
446 if (Py_IS_INFINITY(z.real) && Py_IS_FINITE(z.imag) in c_exp()
464 (Py_IS_FINITE(z.real) || in c_exp()
617 if (!Py_IS_FINITE(z.real) || !Py_IS_FINITE(z.imag)) { in c_sinh()
618 if (Py_IS_INFINITY(z.real) && Py_IS_FINITE(z.imag) in c_sinh()
781 if (!Py_IS_FINITE(z.real) || !Py_IS_FINITE(z.imag)) { in c_tanh()
[all …]
D_json.c13 #ifndef Py_IS_FINITE
14 #define Py_IS_FINITE(X) (!Py_IS_INFINITY(X) && !Py_IS_NAN(X)) macro
1926 if (!Py_IS_FINITE(i)) { in encoder_encode_float()
/external/python/cpython3/Include/
Dpymath.h132 #ifndef Py_IS_FINITE
134 #define Py_IS_FINITE(X) isfinite(X) macro
136 #define Py_IS_FINITE(X) finite(X) macro
138 #define Py_IS_FINITE(X) (!Py_IS_INFINITY(X) && !Py_IS_NAN(X)) macro
/external/python/cpython3/Objects/
Dcomplexobject.c185 if (!Py_IS_FINITE(z.real) || !Py_IS_FINITE(z.imag)) { in _Py_c_abs()
204 if (!Py_IS_FINITE(result)) in _Py_c_abs()
751 return PyBool_FromLong((long)(Py_IS_FINITE(c.real) &&
752 Py_IS_FINITE(c.imag)));
Dfloatobject.c362 else if (!Py_IS_FINITE(i)) { in float_richcompare()
840 if (!Py_IS_FINITE(x)) in float_is_integer_impl()
880 return PyBool_FromLong((long)Py_IS_FINITE(x));
1000 if (!Py_IS_FINITE(y)) in double_round()
1020 if (!Py_IS_FINITE(z)) { in double_round()
1068 if (!Py_IS_FINITE(x)) in float___round___impl()
/external/python/cpython2/Objects/
Dcomplexobject.c196 if (!Py_IS_FINITE(z.real) || !Py_IS_FINITE(z.imag)) { in c_abs()
215 if (!Py_IS_FINITE(result)) in c_abs()
942 return PyBool_FromLong((long)(Py_IS_FINITE(c.real) &&
943 Py_IS_FINITE(c.imag)));
Dfloatobject.c430 else if (!Py_IS_FINITE(i)) { in float_richcompare()
991 if (!Py_IS_FINITE(x)) in float_is_integer()
1031 return PyBool_FromLong((long)Py_IS_FINITE(x));
1137 assert(Py_IS_FINITE(x) && x != 0.0); in _Py_double_round()
1250 if (!Py_IS_FINITE(y)) in _Py_double_round()
1270 if (!Py_IS_FINITE(z)) { in _Py_double_round()
Dobject.c1038 if (!Py_IS_FINITE(v)) { in _Py_HashDouble()
/external/python/cpython3/PC/
Dpyconfig.h192 #define Py_IS_FINITE(X) _finite(X) macro
/external/python/cpython2/PC/
Dpyconfig.h226 #define Py_IS_FINITE(X) _finite(X) macro
/external/python/cpython3/Python/
Dpyhash.c92 if (!Py_IS_FINITE(v)) { in _Py_HashDouble()
/external/python/cpython2/Python/
Dbltinmodule.c2199 if (!Py_IS_FINITE(x) || x == 0.0) in builtin_round()