diff options
| author | martin <martin@NetBSD.org> | 2013-09-16 15:54:42 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2013-09-16 15:54:42 +0000 |
| commit | 787c24b5ee3db02666c8f7cf1f027fbf31aa0e9b (patch) | |
| tree | 121327ba6ff6a758831a5ee49468a2f2f1baa154 /include | |
| parent | 5ecfd9b997210df902292c4e60805f59a25d55ca (diff) | |
Allow archs to provide __isinf() and __isnan() as inline functions instead
of macros.
Diffstat (limited to 'include')
| -rw-r--r-- | include/math.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/math.h b/include/math.h index 11998bb9ced..e495021ac82 100644 --- a/include/math.h +++ b/include/math.h @@ -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 double); ((_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) |
