diff options
author | Andreas Schwab <schwab@suse.de> | 2001-09-13 09:53:28 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@gcc.gnu.org> | 2001-09-13 09:53:28 +0000 |
commit | 08ed72a9f11b962c0f807980e8acc09a4bee2b3d (patch) | |
tree | 8f257cada360b2078c00583f9f27ce7b1c49c632 | |
parent | 133d3133614e67b07891110d12ec1bfc6af58eb0 (diff) | |
download | gcc-08ed72a9f11b962c0f807980e8acc09a4bee2b3d.zip gcc-08ed72a9f11b962c0f807980e8acc09a4bee2b3d.tar.gz gcc-08ed72a9f11b962c0f807980e8acc09a4bee2b3d.tar.bz2 |
float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for C99.
* config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
C99.
From-SVN: r45577
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/float-m68k.h | 27 |
2 files changed, 32 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 85e8c5b..bb91029 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-09-13 Andreas Schwab <schwab@suse.de> + + * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for + C99. + 2001-09-13 Richard Henderson <rth@redhat.com> * config/alpha/alpha.c (small_symbolic_operand): New. diff --git a/gcc/config/float-m68k.h b/gcc/config/float-m68k.h index 8294b66..c942b1d 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_ */ |