Home
last modified time | relevance | path

Searched refs:Py_NAN (Results 1 – 16 of 16) sorted by relevance

/external/python/cpython3/Modules/
D_math.c29 #if !defined(HAVE_ATANH) && !defined(Py_NAN)
57 #ifdef Py_NAN in _Py_acosh()
58 return Py_NAN; in _Py_acosh()
156 #ifdef Py_NAN in _Py_atanh()
157 return Py_NAN; in _Py_atanh()
Dmathmodule.c250 #if !defined(PY_NO_SHORT_FLOAT_REPR) || defined(Py_NAN)
258 return Py_NAN; in m_nan()
275 return Py_NAN; /* tgamma(-inf) = nan, invalid */ in m_tgamma()
288 return Py_NAN; /* negative integers n */ in m_tgamma()
578 return Py_NAN; in m_atan2()
615 return Py_NAN; in m_remainder()
691 return Py_NAN; in m_remainder()
715 return Py_NAN; /* log(-ve) = nan */ in m_log()
723 return Py_NAN; /* log(-inf) = nan */ in m_log()
747 return Py_NAN; /* log2(-inf) = nan, invalid-operation */ in m_log2()
[all …]
Dcmathmodule.c109 #if !defined(PY_NO_SHORT_FLOAT_REPR) || defined(Py_NAN)
117 return Py_NAN; in m_nan()
194 #define N Py_NAN
373 return Py_NAN; in c_atan2()
1293 #if !defined(PY_NO_SHORT_FLOAT_REPR) || defined(Py_NAN) in PyInit_cmath()
/external/python/cpython2/Include/
Dpymath.h154 #if !defined(Py_NAN) && !defined(Py_NO_NAN)
156 #define Py_NAN (Py_HUGE_VAL * 0.) macro
172 #define Py_NAN __icc_nan() macro
175 #define Py_NAN (__nan_store.__icc_nan) macro
Dfloatobject.h30 #ifdef Py_NAN
31 #define Py_RETURN_NAN return PyFloat_FromDouble(Py_NAN)
/external/python/cpython3/Include/
Dpymath.h158 #if !defined(Py_NAN) && !defined(Py_NO_NAN)
160 #define Py_NAN (Py_HUGE_VAL * 0.) macro
176 #define Py_NAN __icc_nan() macro
179 #define Py_NAN (__nan_store.__icc_nan) macro
Dfloatobject.h26 #ifdef Py_NAN
27 #define Py_RETURN_NAN return PyFloat_FromDouble(Py_NAN)
/external/python/cpython2/Modules/
D_math.c48 #ifdef Py_NAN in _Py_acosh()
49 return Py_NAN; in _Py_acosh()
142 #ifdef Py_NAN in _Py_atanh()
143 return Py_NAN; in _Py_atanh()
Dmathmodule.c241 return Py_NAN; /* tgamma(-inf) = nan, invalid */ in m_tgamma()
253 return Py_NAN; /* negative integers n */ in m_tgamma()
535 return Py_NAN; in m_atan2()
576 return Py_NAN; /* log(-ve) = nan */ in m_log()
584 return Py_NAN; /* log(-inf) = nan */ in m_log()
598 return Py_NAN; /* log10(-ve) = nan */ in m_log10()
606 return Py_NAN; /* log10(-inf) = nan */ in m_log10()
Dcmathmodule.c112 #define N Py_NAN
274 return Py_NAN; in c_atan2()
/external/python/cpython3/Python/
Dpystrtod.c83 #ifdef Py_NAN in _Py_parse_inf_or_nan()
86 retval = negate ? -Py_NAN : Py_NAN; in _Py_parse_inf_or_nan()
/external/python/cpython2/Python/
Dpystrtod.c46 #ifdef Py_NAN in _Py_parse_inf_or_nan()
49 retval = negate ? -Py_NAN : Py_NAN; in _Py_parse_inf_or_nan()
/external/python/cpython2/Objects/
Dfloatobject.c677 #ifdef Py_NAN in float_div()
699 #ifdef Py_NAN in float_classic_div()
719 #ifdef Py_NAN in float_rem()
1536 x = Py_NAN; in float_fromhex()
1735 #ifdef Py_NAN in float_as_integer_ratio()
Dcomplexobject.c122 r.real = r.imag = Py_NAN; in c_quot()
212 return Py_NAN; in c_abs()
/external/python/cpython3/Objects/
Dcomplexobject.c111 r.real = r.imag = Py_NAN; in _Py_c_quot()
201 return Py_NAN; in _Py_c_abs()
Dfloatobject.c2421 #ifdef Py_NAN in _PyFloat_Unpack2()
2422 return sign ? -Py_NAN : Py_NAN; in _PyFloat_Unpack2()