summaryrefslogtreecommitdiff
path: root/gcc/config/float-i64.h
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-31 19:49:00 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-31 19:49:00 +0000
commit21349a7f30632854aac7f712ac779b525a75b147 (patch)
tree70cbe6f80adc1af1ea22f0cb187ac4ca4a1bf3c8 /gcc/config/float-i64.h
parentbf9922273e28e3b8d59ba7631e77b9ddcc893dfa (diff)
downloadgcc-21349a7f30632854aac7f712ac779b525a75b147.tar.gz
* config/float-i128.h (FLT_EVAL_METHOD, DECIMAL_DIG): Define.
* config/float-i32.h: Likewise. * config/float-i64.h: Likewise. * config/float-sh.h: Likewise. * config/float-sparc.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39383 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/float-i64.h')
-rw-r--r--gcc/config/float-i64.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc/config/float-i64.h b/gcc/config/float-i64.h
index 7dbe4e92a10..b045fb35eef 100644
--- a/gcc/config/float-i64.h
+++ b/gcc/config/float-i64.h
@@ -93,4 +93,31 @@
#undef LDBL_MAX_10_EXP
#define LDBL_MAX_10_EXP 308
+#if __STDC_VERSION__ >= 199901L
+ /* The floating-point expression evaluation method.
+ -1 indeterminate
+ 0 evaluate all operations and constants just to the range and
+ precision of the type
+ 1 evaluate operations and constants of type float and double
+ to the range and precision of the double type, evaluate
+ long double operations and constants to the range and
+ precision of the long double type
+ 2 evaluate all operations and constants to the range and
+ precision of the long double type
+ */
+# undef FLT_EVAL_METHOD
+# define FLT_EVAL_METHOD 0
+
+ /* Number of decimal digits to enable rounding to the given number of
+ decimal digits without loss of precision.
+ if FLT_RADIX == 10^n: #mantissa * log10 (FLT_RADIX)
+ else : ceil (1 + #mantissa * log10 (FLT_RADIX))
+ where #mantissa is the number of bits in the mantissa of the widest
+ supported floating-point type.
+ */
+# undef DECIMAL_DIG
+# define DECIMAL_DIG 17
+
+#endif /* C99 */
+
#endif /* _FLOAT_H_ */