/external/python/cpython2/Modules/ |
D | mathmodule.c | 237 if (Py_IS_NAN(x) || x > 0.0) in m_tgamma() 337 if (Py_IS_NAN(x)) in m_lgamma() 494 if (Py_IS_NAN(x)) in m_erf() 512 if (Py_IS_NAN(x)) in m_erfc() 534 if (Py_IS_NAN(x) || Py_IS_NAN(y)) in m_atan2() 578 else if (Py_IS_NAN(x)) in m_log() 600 else if (Py_IS_NAN(x)) in m_log10() 692 if (Py_IS_NAN(r)) { in math_1() 693 if (!Py_IS_NAN(x)) in math_1() 772 if (Py_IS_NAN(r)) { in math_2() [all …]
|
D | _math.c | 43 if (Py_IS_NAN(x)) { in _Py_acosh() 93 if (Py_IS_NAN(x) || Py_IS_INFINITY(x)) { in _Py_asinh() 136 if (Py_IS_NAN(x)) { in _Py_atanh()
|
D | cmathmodule.c | 92 if (Py_IS_NAN(d)) in special_type() 273 if (Py_IS_NAN(z.real) || Py_IS_NAN(z.imag)) in c_atan2() 404 if (Py_IS_INFINITY(z.imag) && !Py_IS_NAN(z.real)) in c_cosh() 635 if (Py_IS_INFINITY(z.imag) && !Py_IS_NAN(z.real)) in c_sinh() 1005 if (r != 0. && !Py_IS_NAN(r) && Py_IS_INFINITY(phi)) in cmath_rect() 1040 return PyBool_FromLong(Py_IS_NAN(z.real) || Py_IS_NAN(z.imag)); in cmath_isnan()
|
D | _json.c | 14 #define Py_IS_FINITE(X) (!Py_IS_INFINITY(X) && !Py_IS_NAN(X))
|
/external/python/cpython3/Modules/ |
D | mathmodule.c | 271 if (Py_IS_NAN(x) || x > 0.0) in m_tgamma() 373 if (Py_IS_NAN(x)) in m_lgamma() 532 if (Py_IS_NAN(x)) in m_erf() 554 if (Py_IS_NAN(x)) in m_erfc() 577 if (Py_IS_NAN(x) || Py_IS_NAN(y)) in m_atan2() 684 if (Py_IS_NAN(x)) { in m_remainder() 687 if (Py_IS_NAN(y)) { in m_remainder() 717 else if (Py_IS_NAN(x)) in m_log() 741 if (Py_IS_NAN(x)) in m_log2() 794 else if (Py_IS_NAN(x)) in m_log10() [all …]
|
D | _math.c | 52 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()
|
D | cmathmodule.c | 174 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() 1101 if (r != 0. && !Py_IS_NAN(r) && Py_IS_INFINITY(phi)) in cmath_rect_impl() 1149 return PyBool_FromLong(Py_IS_NAN(z.real) || Py_IS_NAN(z.imag)); in cmath_isnan_impl()
|
/external/python/cpython2/Include/ |
D | pymath.h | 93 #ifndef Py_IS_NAN 95 #define Py_IS_NAN(X) isnan(X) macro 97 #define Py_IS_NAN(X) ((X) != (X)) macro 134 #define Py_IS_FINITE(X) (!Py_IS_INFINITY(X) && !Py_IS_NAN(X))
|
/external/python/cpython3/Include/ |
D | pymath.h | 97 #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))
|
/external/python/cpython3/Objects/ |
D | floatobject.c | 702 if (Py_IS_NAN(iv)) { /* nan**w = nan, unless w == 0 */ in float_pow() 705 if (Py_IS_NAN(iw)) { /* v**nan = nan, unless v == 1; 1**nan = 1 */ in float_pow() 871 return PyBool_FromLong((long)Py_IS_NAN(x)); 1215 if (Py_IS_NAN(x) || Py_IS_INFINITY(x)) in float_hex_impl() 1555 if (Py_IS_NAN(self_double)) { in float_as_integer_ratio_impl() 2069 else if (Py_IS_NAN(x)) { in _PyFloat_Pack2()
|
D | longobject.c | 352 if (Py_IS_NAN(dval)) { in PyLong_FromDouble()
|
/external/python/cpython3/Python/ |
D | pytime.c | 172 if (Py_IS_NAN(d)) { in _PyTime_ObjectToDenominator() 199 if (Py_IS_NAN(d)) { in _PyTime_ObjectToTime_t() 407 if (Py_IS_NAN(d)) { in _PyTime_FromObject()
|
D | pystrtod.c | 885 if (Py_IS_NAN(val) || Py_IS_INFINITY(val)) in PyOS_double_to_string() 903 if (Py_IS_NAN(val)) { in PyOS_double_to_string()
|
/external/python/cpython3/PC/ |
D | pyconfig.h | 190 #define Py_IS_NAN _isnan macro
|
/external/python/cpython2/PC/ |
D | pyconfig.h | 224 #define Py_IS_NAN _isnan macro
|
/external/python/cpython2/Objects/ |
D | floatobject.c | 836 if (Py_IS_NAN(iv)) { /* nan**w = nan, unless w == 0 */ in float_pow() 839 if (Py_IS_NAN(iw)) { /* v**nan = nan, unless v == 1; 1**nan = 1 */ in float_pow() 1022 return PyBool_FromLong((long)Py_IS_NAN(x)); 1382 if (Py_IS_NAN(x) || Py_IS_INFINITY(x)) in float_hex() 1736 if (Py_IS_NAN(self)) { in float_as_integer_ratio()
|
D | longobject.c | 183 if (Py_IS_NAN(dval)) { in PyLong_FromDouble()
|
/external/python/cpython2/Python/ |
D | pystrtod.c | 825 if (Py_IS_NAN(val) || Py_IS_INFINITY(val)) in PyOS_double_to_string() 843 if (Py_IS_NAN(val)) { in PyOS_double_to_string()
|
/external/python/cpython3/Modules/_decimal/ |
D | _decimal.c | 2120 if (Py_IS_NAN(x) || Py_IS_INFINITY(x)) { in PyDecType_FromFloatExact() 2125 if (Py_IS_NAN(x)) { in PyDecType_FromFloatExact()
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.4.rst | 1467 * The :c:macro:`Py_IS_NAN(X)` macro returns 1 if its float or double argument
|
/external/python/cpython3/Doc/whatsnew/ |
D | 2.4.rst | 1467 * The :c:macro:`Py_IS_NAN(X)` macro returns 1 if its float or double argument
|
/external/python/cpython2/Misc/ |
D | HISTORY | 2428 - pyport.h now defines a Py_IS_NAN macro. It works as-is when the
|
/external/python/cpython3/Misc/ |
D | HISTORY | 19812 - pyport.h now defines a Py_IS_NAN macro. It works as-is when the
|