Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jan 2011 06:05:48 +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: r217182 - in head/sys: sparc64/include sun4v/include
Message-ID:  <201101090605.p0965m5u031462@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: das
Date: Sun Jan  9 06:05:48 2011
New Revision: 217182
URL: http://svn.freebsd.org/changeset/base/217182

Log:
  Fix the value for DECIMAL_DIG on UltraSparcs.  The previous value of
  35 wasn't quite big enough to ensure correct rounding for very-close-
  to-halfway cases.

Modified:
  head/sys/sparc64/include/float.h
  head/sys/sun4v/include/float.h

Modified: head/sys/sparc64/include/float.h
==============================================================================
--- head/sys/sparc64/include/float.h	Sun Jan  9 06:05:22 2011	(r217181)
+++ head/sys/sparc64/include/float.h	Sun Jan  9 06:05:48 2011	(r217182)
@@ -48,7 +48,7 @@ __END_DECLS
 #define FLT_ROUNDS	__flt_rounds()
 #if __ISO_C_VISIBLE >= 1999
 #define	FLT_EVAL_METHOD	0		/* no promotion */
-#define	DECIMAL_DIG	35		/* max precision in decimal digits */
+#define	DECIMAL_DIG	36		/* max precision in decimal digits */
 #endif
 
 #define FLT_MANT_DIG	24		/* p */

Modified: head/sys/sun4v/include/float.h
==============================================================================
--- head/sys/sun4v/include/float.h	Sun Jan  9 06:05:22 2011	(r217181)
+++ head/sys/sun4v/include/float.h	Sun Jan  9 06:05:48 2011	(r217182)
@@ -48,7 +48,7 @@ __END_DECLS
 #define FLT_ROUNDS	__flt_rounds()
 #if __ISO_C_VISIBLE >= 1999
 #define	FLT_EVAL_METHOD	0		/* no promotion */
-#define	DECIMAL_DIG	35		/* max precision in decimal digits */
+#define	DECIMAL_DIG	36		/* max precision in decimal digits */
 #endif
 
 #define FLT_MANT_DIG	24		/* p */



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