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
This commit is contained in:
parent
dbac5d0dd5
commit
b9e6ebe97b
|
@ -1,3 +1,11 @@
|
|||
2001-01-31 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2001-01-31 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* expmed.c (extract_bit_field): allow non-integral modes if we
|
||||
|
|
|
@ -93,4 +93,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 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 36
|
||||
|
||||
#endif /* C99 */
|
||||
|
||||
#endif /* _FLOAT_H_ */
|
||||
|
|
|
@ -93,4 +93,31 @@
|
|||
#undef LDBL_MAX_10_EXP
|
||||
#define LDBL_MAX_10_EXP 38
|
||||
|
||||
#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 9
|
||||
|
||||
#endif /* C99 */
|
||||
|
||||
#endif /* _FLOAT_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_ */
|
||||
|
|
|
@ -94,4 +94,7 @@
|
|||
#undef LDBL_MAX_10_EXP
|
||||
#define LDBL_MAX_10_EXP 4932
|
||||
|
||||
/* ??? 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. */
|
||||
|
||||
#endif /* _FLOAT_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_ */
|
||||
|
|
|
@ -119,4 +119,35 @@
|
|||
|
||||
#endif /* sparc32 */
|
||||
|
||||
#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
|
||||
# if LDBL_MANT_DIG == 53
|
||||
# define DECIMAL_DIG 17
|
||||
# else
|
||||
# define DECIMAL_DIG 36
|
||||
# endif
|
||||
|
||||
#endif /* C99 */
|
||||
|
||||
#endif /* _FLOAT_H_ */
|
||||
|
|
Loading…
Reference in New Issue