From d26eb1d0f1cca981c6ce198f1a575b4200e14cce Mon Sep 17 00:00:00 2001 From: schwab Date: Thu, 13 Sep 2001 09:53:28 +0000 Subject: * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for C99. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45577 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config/float-m68k.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gcc/config/float-m68k.h') diff --git a/gcc/config/float-m68k.h b/gcc/config/float-m68k.h index 8294b66f3d0..c942b1da913 100644 --- a/gcc/config/float-m68k.h +++ b/gcc/config/float-m68k.h @@ -94,7 +94,34 @@ #undef LDBL_MAX_10_EXP #define LDBL_MAX_10_EXP 4932 +#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 + */ + /* ??? FLT_EVAL_METHOD depends on TARGET_68040_ONLY. We do not currently have a preprocessor token that we can use to tell that this is on. */ +# undef FLT_EVAL_METHOD +# define FLT_EVAL_METHOD -1 + + /* 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 21 + +#endif /* C99 */ #endif /* _FLOAT_H_ */ -- cgit v1.2.1