summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 231fb77)
raw | patch | inline | side by side (parent: 231fb77)
author | kidproto <kidproto@users.sourceforge.net> | |
Sun, 22 Oct 2006 19:17:59 +0000 (19:17 +0000) | ||
committer | kidproto <kidproto@users.sourceforge.net> | |
Sun, 22 Oct 2006 19:17:59 +0000 (19:17 +0000) |
AUTHORS | patch | blob | history | |
src/isnan.h | patch | blob | history |
index e6fa01f682106411bc7d9e27fe960b1ca87b2daf..0eddb6965c2e7372b24a003026d40d1509575195 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
Daniel Yacob
David Yip
Masatake Yamato
-
+Andre Twupack
diff --git a/src/isnan.h b/src/isnan.h
index de8b6d6299103e6962881c89fe3063782bad2d29..1b4d10aab0594e97d876f16cd4df5e7581cfabca 100644 (file)
--- a/src/isnan.h
+++ b/src/isnan.h
# define isNaN(_a) (__isnan(_a)) /* MacOSX/Darwin definition < 10.4 */
#elif defined(WIN32) || defined(_isnan)
# define isNaN(_a) (_isnan(_a)) /* Win32 definition */
-#elif defined(isnan) || defined(__FreeBSD__)
+#elif defined(isnan) || defined(__FreeBSD__) || defined(__osf__)
# define isNaN(_a) (isnan(_a)) /* GNU definition */
#else
# define isNaN(_a) (std::isnan(_a))
# define isFinite(_a) (_isfinite(_a))
#elif defined(isfinite)
# define isFinite(_a) (isfinite(_a))
+#elif defined(__osf__)
+# define isFinite(_a) (finite(_a) && !isNaN(_a))
#else
# define isFinite(_a) (std::isfinite(_a))
#endif