Commit e0fc2155 authored by Matthias Braun's avatar Matthias Braun
Browse files

remove old+nonworking setting of ieee754 immediate precision

parent 4ce24476
...@@ -777,15 +777,6 @@ FIRM_API int tarval_ieee754_get_exponent(ir_tarval *tv); ...@@ -777,15 +777,6 @@ FIRM_API int tarval_ieee754_get_exponent(ir_tarval *tv);
*/ */
FIRM_API int tarval_ieee754_can_conv_lossless(ir_tarval *tv, ir_mode *mode); FIRM_API int tarval_ieee754_can_conv_lossless(ir_tarval *tv, ir_mode *mode);
/**
* Set the immediate precision for IEEE-754 results. Set this to
* 0 to get the same precision as the operands.
* For x87 compatibility, set this to 80.
*
* @return the old setting
*/
FIRM_API unsigned tarval_ieee754_set_immediate_precision(unsigned bits);
/** /**
* Returns non-zero if the result of the last IEEE-754 operation was exact. * Returns non-zero if the result of the last IEEE-754 operation was exact.
*/ */
......
...@@ -136,9 +136,6 @@ struct fp_value { ...@@ -136,9 +136,6 @@ struct fp_value {
# define TRACEPRINTF(x) ((void)0) # define TRACEPRINTF(x) ((void)0)
#endif #endif
/** The immediate precision. */
static unsigned immediate_prec = 0;
/** A temporal buffer. */ /** A temporal buffer. */
static fp_value *calc_buffer = NULL; static fp_value *calc_buffer = NULL;
...@@ -1578,15 +1575,6 @@ int fc_flt2int(const fp_value *a, void *result, ir_mode *dst_mode) ...@@ -1578,15 +1575,6 @@ int fc_flt2int(const fp_value *a, void *result, ir_mode *dst_mode)
return 0; return 0;
} }
unsigned fc_set_immediate_precision(unsigned bits)
{
unsigned old = immediate_prec;
immediate_prec = bits;
return old;
}
int fc_is_exact(void) int fc_is_exact(void)
{ {
return fc_exact; return fc_exact;
......
...@@ -269,15 +269,6 @@ fc_rounding_mode_t fc_get_rounding_mode(void); ...@@ -269,15 +269,6 @@ fc_rounding_mode_t fc_get_rounding_mode(void);
*/ */
unsigned char fc_sub_bits(const fp_value *val, unsigned num_bit, unsigned byte_ofs); unsigned char fc_sub_bits(const fp_value *val, unsigned num_bit, unsigned byte_ofs);
/**
* Set the immediate precision for IEEE-754 results. Set this to
* 0 to get the same precision as the operands.
* For x87 compatibility, set this to 80.
*
* @return the old setting
*/
unsigned fc_set_immediate_precision(unsigned bits);
/** /**
* Returns non-zero if the result of the last operation was exact. * Returns non-zero if the result of the last operation was exact.
*/ */
......
...@@ -1685,12 +1685,6 @@ int tarval_ieee754_can_conv_lossless(ir_tarval *tv, ir_mode *mode) ...@@ -1685,12 +1685,6 @@ int tarval_ieee754_can_conv_lossless(ir_tarval *tv, ir_mode *mode)
return fc_can_lossless_conv_to((const fp_value*) tv->value, desc); return fc_can_lossless_conv_to((const fp_value*) tv->value, desc);
} }
/* Set the immediate precision for IEEE-754 results. */
unsigned tarval_ieee754_set_immediate_precision(unsigned bits)
{
return fc_set_immediate_precision(bits);
}
/* Returns non-zero if the result of the last IEEE-754 operation was exact. */ /* Returns non-zero if the result of the last IEEE-754 operation was exact. */
unsigned tarval_ieee754_get_exact(void) unsigned tarval_ieee754_get_exact(void)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment