diff options
author | drepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-12 05:28:26 +0000 |
---|---|---|
committer | drepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-12 05:28:26 +0000 |
commit | 22e0f257f3ea71ab167ccb7072dbb97b1c2d9cb6 (patch) | |
tree | dd8df3e8f3bd80a98fb38878a00c450ea956d166 /gcc/config/float-i386.h | |
parent | 7c6882c4c067d06e75e56ea6a7817b858835ab33 (diff) | |
download | gcc-22e0f257f3ea71ab167ccb7072dbb97b1c2d9cb6.tar.gz |
Define FLT_EVAL_METHOD and DECIMAL_DIG for C99.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38936 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/float-i386.h')
-rw-r--r-- | gcc/config/float-i386.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc/config/float-i386.h b/gcc/config/float-i386.h index 71a90d68012..075f2eed736 100644 --- a/gcc/config/float-i386.h +++ b/gcc/config/float-i386.h @@ -94,4 +94,31 @@ #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 + */ +# undef FLT_EVAL_METHOD +# define FLT_EVAL_METHOD 2 + + /* 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___ */ |