Module Name: src
Committed By: martin
Date: Mon Sep 16 15:54:42 UTC 2013
Modified Files:
src/include: math.h
Log Message:
Allow archs to provide __isinf() and __isnan() as inline functions instead
of macros.
To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/include/math.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/include/math.h
diff -u src/include/math.h:1.62 src/include/math.h:1.63
--- src/include/math.h:1.62 Fri Apr 19 16:40:59 2013
+++ src/include/math.h Mon Sep 16 15:54:42 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: math.h,v 1.62 2013/04/19 16:40:59 joerg Exp $ */
+/* $NetBSD: math.h,v 1.63 2013/09/16 15:54:42 martin Exp $ */
/*
* ====================================================
@@ -472,14 +472,14 @@ long double fminl(long double, long doub
((_POSIX_C_SOURCE - 0) >= 200112L) || \
defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE)
/* 7.12.3.3 int isinf(real-floating x) */
-#ifdef __isinf
+#if defined(__isinf) || defined(__HAVE_INLINE___ISINF)
#define isinf(__x) __isinf(__x)
#else
#define isinf(__x) __fpmacro_unary_floating(isinf, __x)
#endif
/* 7.12.3.4 int isnan(real-floating x) */
-#ifdef __isnan
+#if defined(__isnan) || defined(__HAVE_INLINE___ISNAN)
#define isnan(__x) __isnan(__x)
#else
#define isnan(__x) __fpmacro_unary_floating(isnan, __x)