Module Name: src
Committed By: matt
Date: Sun Feb 5 17:57:18 UTC 2012
Modified Files:
src/include: math.h
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 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.56 src/include/math.h:1.57
--- src/include/math.h:1.56 Thu Jul 28 22:32:28 2011
+++ src/include/math.h Sun Feb 5 17:57:17 2012
@@ -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 @@ extern const union __long_double_u __inf
#endif
/* 7.12#4 INFINITY */
-#if __GNUC_PREREQ__(3, 3)
-#define INFINITY __builtin_inff()
-#elif defined(__INFINITY)
+#if defined(__INFINITY)
#define INFINITY __INFINITY /* float constant which overflows */
+#elif __GNUC_PREREQ__(3, 3)
+#define INFINITY __builtin_inff()
#else
#define INFINITY HUGE_VALF /* positive infinity */
#endif /* __INFINITY */