diff options
author | Richard Henderson <rth@redhat.com> | 2001-01-31 11:49:00 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-01-31 11:49:00 -0800 |
commit | b9e6ebe97b85b537c46b36e25900ed086cd52e61 (patch) | |
tree | 70cbe6f80adc1af1ea22f0cb187ac4ca4a1bf3c8 /gcc/config/float-sh.h | |
parent | dbac5d0dd5bfafbf33f78b85298b5a9d14888723 (diff) | |
download | gcc-b9e6ebe97b85b537c46b36e25900ed086cd52e61.zip gcc-b9e6ebe97b85b537c46b36e25900ed086cd52e61.tar.gz gcc-b9e6ebe97b85b537c46b36e25900ed086cd52e61.tar.bz2 |
float-i128.h (FLT_EVAL_METHOD, [...]): Define.
* 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.
From-SVN: r39383
Diffstat (limited to 'gcc/config/float-sh.h')
-rw-r--r-- | gcc/config/float-sh.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc/config/float-sh.h b/gcc/config/float-sh.h index 4466924..7c074ac 100644 --- a/gcc/config/float-sh.h +++ b/gcc/config/float-sh.h @@ -127,4 +127,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_ */ |