Home
last modified time | relevance | path

Searched refs:Py_IS_NAN (Results 1 – 12 of 12) sorted by relevance

/third_party/python/Include/
Dpymath.h97 #ifndef Py_IS_NAN
99 #define Py_IS_NAN(X) isnan(X) macro
101 #define Py_IS_NAN(X) ((X) != (X)) macro
138 #define Py_IS_FINITE(X) (!Py_IS_INFINITY(X) && !Py_IS_NAN(X))
/third_party/python/Modules/
Dmathmodule.c295 if (Py_IS_NAN(x) || x > 0.0) in m_tgamma()
397 if (Py_IS_NAN(x)) in m_lgamma()
556 if (Py_IS_NAN(x)) in m_erf()
578 if (Py_IS_NAN(x)) in m_erfc()
601 if (Py_IS_NAN(x) || Py_IS_NAN(y)) in m_atan2()
708 if (Py_IS_NAN(x)) { in m_remainder()
711 if (Py_IS_NAN(y)) { in m_remainder()
741 else if (Py_IS_NAN(x)) in m_log()
765 if (Py_IS_NAN(x)) in m_log2()
818 else if (Py_IS_NAN(x)) in m_log10()
[all …]
D_math.c52 if (Py_IS_NAN(x)) { in _Py_acosh()
104 if (Py_IS_NAN(x) || Py_IS_INFINITY(x)) { in _Py_asinh()
150 if (Py_IS_NAN(x)) { in _Py_atanh()
Dcmathmodule.c174 if (Py_IS_NAN(d)) in special_type()
372 if (Py_IS_NAN(z.real) || Py_IS_NAN(z.imag)) in c_atan2()
509 if (Py_IS_INFINITY(z.imag) && !Py_IS_NAN(z.real)) in cmath_cosh_impl()
747 if (Py_IS_INFINITY(z.imag) && !Py_IS_NAN(z.real)) in cmath_sinh_impl()
1094 if (r != 0. && !Py_IS_NAN(r) && Py_IS_INFINITY(phi)) in cmath_rect_impl()
1141 return PyBool_FromLong(Py_IS_NAN(z.real) || Py_IS_NAN(z.imag)); in cmath_isnan_impl()
/third_party/python/PC/
Dpyconfig.h193 #define Py_IS_NAN _isnan macro
/third_party/python/Python/
Dpytime.c178 if (Py_IS_NAN(d)) { in _PyTime_ObjectToDenominator()
205 if (Py_IS_NAN(d)) { in _PyTime_ObjectToTime_t()
413 if (Py_IS_NAN(d)) { in _PyTime_FromObject()
Dpystrtod.c884 if (Py_IS_NAN(val) || Py_IS_INFINITY(val)) in PyOS_double_to_string()
902 if (Py_IS_NAN(val)) { in PyOS_double_to_string()
/third_party/python/Objects/
Dfloatobject.c706 if (Py_IS_NAN(iv)) { /* nan**w = nan, unless w == 0 */ in float_pow()
709 if (Py_IS_NAN(iw)) { /* v**nan = nan, unless v == 1; 1**nan = 1 */ in float_pow()
1194 if (Py_IS_NAN(x) || Py_IS_INFINITY(x)) in float_hex_impl()
1534 if (Py_IS_NAN(self_double)) { in float_as_integer_ratio_impl()
2039 else if (Py_IS_NAN(x)) { in _PyFloat_Pack2()
Dlongobject.c448 if (Py_IS_NAN(dval)) { in PyLong_FromDouble()
/third_party/python/Modules/_decimal/
D_decimal.c2265 if (Py_IS_NAN(x) || Py_IS_INFINITY(x)) { in PyDecType_FromFloatExact()
2270 if (Py_IS_NAN(x)) { in PyDecType_FromFloatExact()
/third_party/python/Doc/whatsnew/
D2.4.rst1467 * The :c:macro:`Py_IS_NAN(X)` macro returns 1 if its float or double argument
/third_party/python/Misc/
DHISTORY19812 - pyport.h now defines a Py_IS_NAN macro. It works as-is when the