Home
last modified time | relevance | path

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

/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/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/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/Modules/
Dmathmodule.c109 assert(Py_IS_FINITE(x)); in m_sinpi()
294 if (!Py_IS_FINITE(x)) { in m_tgamma()
396 if (!Py_IS_FINITE(x)) { in m_lgamma()
635 if (Py_IS_FINITE(x) && Py_IS_FINITE(y)) { in m_remainder()
732 if (Py_IS_FINITE(x)) { in m_log()
764 if (!Py_IS_FINITE(x)) { in m_log2()
809 if (Py_IS_FINITE(x)) { in m_log10()
1034 if (Py_IS_INFINITY(r) && Py_IS_FINITE(x)) { in math_1_to_whatever()
1043 if (Py_IS_FINITE(r) && errno && is_error(r)) in math_1_to_whatever()
1125 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.c1345 if (!Py_IS_FINITE(i)) { in encoder_encode_float()
/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.h195 #define Py_IS_FINITE(X) _finite(X) macro
/external/python/cpython3/Objects/
Dfloatobject.c372 else if (!Py_IS_FINITE(i)) { in float_richcompare()
842 if (!Py_IS_FINITE(x)) in float_is_integer_impl()
979 if (!Py_IS_FINITE(y)) in double_round()
999 if (!Py_IS_FINITE(z)) { in double_round()
1047 if (!Py_IS_FINITE(x)) in float___round___impl()
Dcomplexobject.c192 if (!Py_IS_FINITE(z.real) || !Py_IS_FINITE(z.imag)) { in _Py_c_abs()
211 if (!Py_IS_FINITE(result)) in _Py_c_abs()
/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()