summaryrefslogtreecommitdiffstats
path: root/sys/sun4v
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2011-01-09 06:05:48 +0000
committerdas <das@FreeBSD.org>2011-01-09 06:05:48 +0000
commit335eded0fb8adf677fb43e1ff0d7986853c6cd5b (patch)
tree2f848af433684dd2934d34fea685bab614fce70f /sys/sun4v
parentb0da71a6821160286cc345eb1cd1be01fbb44bbe (diff)
downloadFreeBSD-src-335eded0fb8adf677fb43e1ff0d7986853c6cd5b.zip
FreeBSD-src-335eded0fb8adf677fb43e1ff0d7986853c6cd5b.tar.gz
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.
Diffstat (limited to 'sys/sun4v')
-rw-r--r--sys/sun4v/include/float.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sun4v/include/float.h b/sys/sun4v/include/float.h
index cf78df0..de1d7fe 100644
--- a/sys/sun4v/include/float.h
+++ b/sys/sun4v/include/float.h
@@ -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 */
OpenPOWER on IntegriCloud