Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include Use __INFINITY in preference to __builtin_inff(). C...
details: https://anonhg.NetBSD.org/src/rev/7aa5f8fcf80a
branches: trunk
changeset: 773552:7aa5f8fcf80a
user: matt <matt%NetBSD.org@localhost>
date: Sun Feb 05 17:57:17 2012 +0000
description:
Use __INFINITY in preference to __builtin_inff(). Currently only VAX defines
__INFINITY and allows to use __builtin_huge_valf() instead since gcc4.5 will
error out unconditionally if __builtin_inf() is used.
diffstat:
include/math.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (23 lines):
diff -r dafbc2827c5d -r 7aa5f8fcf80a include/math.h
--- a/include/math.h Sun Feb 05 17:55:12 2012 +0000
+++ b/include/math.h Sun Feb 05 17:57:17 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: math.h,v 1.56 2011/07/28 22:32:28 joerg Exp $ */
+/* $NetBSD: math.h,v 1.57 2012/02/05 17:57:17 matt Exp $ */
/*
* ====================================================
@@ -88,10 +88,10 @@
#endif
/* 7.12#4 INFINITY */
-#if __GNUC_PREREQ__(3, 3)
+#if defined(__INFINITY)
+#define INFINITY __INFINITY /* float constant which overflows */
+#elif __GNUC_PREREQ__(3, 3)
#define INFINITY __builtin_inff()
-#elif defined(__INFINITY)
-#define INFINITY __INFINITY /* float constant which overflows */
#else
#define INFINITY HUGE_VALF /* positive infinity */
#endif /* __INFINITY */
Home |
Main Index |
Thread Index |
Old Index