Home
last modified time | relevance | path

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

/third_party/python/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.c276 #if !defined(PY_NO_SHORT_FLOAT_REPR) || defined(Py_NAN)
284 return Py_NAN; in m_nan()
301 return Py_NAN; /* tgamma(-inf) = nan, invalid */ in m_tgamma()
314 return Py_NAN; /* negative integers n */ in m_tgamma()
604 return Py_NAN; in m_atan2()
641 return Py_NAN; in m_remainder()
717 return Py_NAN; in m_remainder()
741 return Py_NAN; /* log(-ve) = nan */ in m_log()
749 return Py_NAN; /* log(-inf) = nan */ in m_log()
773 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()
1278 #if !defined(PY_NO_SHORT_FLOAT_REPR) || defined(Py_NAN) in cmath_exec()
/third_party/python/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)
/third_party/python/Python/
Dpystrtod.c84 #ifdef Py_NAN in _Py_parse_inf_or_nan()
87 retval = negate ? -Py_NAN : Py_NAN; in _Py_parse_inf_or_nan()
/third_party/python/Objects/
Dcomplexobject.c118 r.real = r.imag = Py_NAN; in _Py_c_quot()
204 return Py_NAN; in _Py_c_abs()
Dfloatobject.c2450 #ifdef Py_NAN in _PyFloat_Unpack2()
2451 return sign ? -Py_NAN : Py_NAN; in _PyFloat_Unpack2()