svn commit: r186886 - head/lib/msun/src
David Schultz
das at FreeBSD.org
Wed Jan 7 22:12:04 PST 2009
Author: das
Date: Thu Jan 8 06:12:03 2009
New Revision: 186886
URL: http://svn.freebsd.org/changeset/base/186886
Log:
Fix the types of INFINITY and NAN, which were broken in r131851. They
should both be floats, not doubles.
PR: 127795
Submitted by: Christoph Mallon
MFC after: 2 weeks
Modified:
head/lib/msun/src/math.h
Modified: head/lib/msun/src/math.h
==============================================================================
--- head/lib/msun/src/math.h Thu Jan 8 05:10:03 2009 (r186885)
+++ head/lib/msun/src/math.h Thu Jan 8 06:12:03 2009 (r186886)
@@ -55,8 +55,8 @@ extern const union __nan_un {
#ifdef __MATH_BUILTIN_CONSTANTS
#define HUGE_VALF __builtin_huge_valf()
#define HUGE_VALL __builtin_huge_vall()
-#define INFINITY __builtin_inf()
-#define NAN __builtin_nan("")
+#define INFINITY __builtin_inff()
+#define NAN __builtin_nanf("")
#else
#define HUGE_VALF (float)HUGE_VAL
#define HUGE_VALL (long double)HUGE_VAL
More information about the svn-src-head
mailing list