Date: Thu, 8 Jan 2009 06:12:03 +0000 (UTC) From: David Schultz <das@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r186886 - head/lib/msun/src Message-ID: <200901080612.n086C3ZR010633@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901080612.n086C3ZR010633>