Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include Allow archs to provide __isinf() and __isnan() as in...
details: https://anonhg.NetBSD.org/src/rev/63ba1fd6d80e
branches: trunk
changeset: 790081:63ba1fd6d80e
user: martin <martin%NetBSD.org@localhost>
date: Mon Sep 16 15:54:42 2013 +0000
description:
Allow archs to provide __isinf() and __isnan() as inline functions instead
of macros.
diffstat:
include/math.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 29fd0db967e7 -r 63ba1fd6d80e include/math.h
--- a/include/math.h Mon Sep 16 15:33:24 2013 +0000
+++ b/include/math.h Mon Sep 16 15:54:42 2013 +0000
@@ -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 @@
((_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)
Home |
Main Index |
Thread Index |
Old Index