Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 2009 05:18:21 +0000 (UTC)
From:      David Schultz <das@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r187811 - in stable/7/lib/msun: . src
Message-ID:  <200901280518.n0S5ILRZ008198@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: das
Date: Wed Jan 28 05:18:21 2009
New Revision: 187811
URL: http://svn.freebsd.org/changeset/base/187811

Log:
  MFC r186886:
  
    Fix the types of INFINITY and NAN, which were broken in r131851. They
    should both be floats, not doubles.
  
    PR:		127795

Modified:
  stable/7/lib/msun/   (props changed)
  stable/7/lib/msun/src/math.h

Modified: stable/7/lib/msun/src/math.h
==============================================================================
--- stable/7/lib/msun/src/math.h	Wed Jan 28 05:07:16 2009	(r187810)
+++ stable/7/lib/msun/src/math.h	Wed Jan 28 05:18:21 2009	(r187811)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901280518.n0S5ILRZ008198>