pike.git/
src/
encode.c
Branch:
Tag:
Non-build tags
All tags
No tags
2016-01-10
2016-01-10 21:37:17 by Martin Nilsson <nilsson@fastmail.com>
10b43e4e29b4d46b448904f2a11d98b3af778da6 (
25
lines) (+
8
/-
17
)
[
Show
|
Annotate
]
Branch:
8.1
Hide the different versions of isinf in PIKE_ISINF properly.
650:
#else { int pike_ftype=Pike_FP_UNKNOWN;
-
#ifdef
HAVE_ISINF
-
if(
isinf
(d))
+
if(
PIKE_ISINF
(d))
pike_ftype=Pike_FP_PINF; else
-
#endif
+
#ifdef HAVE_ISNAN
-
if(isnan(d))
{
+
if(isnan(d))
pike_ftype=Pike_FP_SNAN;
-
}
else
+
else
#endif #ifdef HAVE_ISZERO if(iszero(d)) pike_ftype=Pike_FP_PZERO;
-
else
+
#endif
-
#ifdef HAVE_ISFINITE
-
if(!isfinite(d))
-
pike_ftype=Pike_FP_PINF;
-
#elif HAVE_FINITE
-
if(!finite(d))
-
pike_ftype=Pike_FP_PINF;
-
#endif
+
; /* Terminate any remaining else */ if(