Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
e0fc2155
Commit
e0fc2155
authored
Oct 24, 2011
by
Matthias Braun
Browse files
remove old+nonworking setting of ieee754 immediate precision
parent
4ce24476
Changes
4
Hide whitespace changes
Inline
Side-by-side
include/libfirm/tv.h
View file @
e0fc2155
...
...
@@ -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
);
/**
* 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.
*/
...
...
ir/tv/fltcalc.c
View file @
e0fc2155
...
...
@@ -136,9 +136,6 @@ struct fp_value {
# define TRACEPRINTF(x) ((void)0)
#endif
/** The immediate precision. */
static
unsigned
immediate_prec
=
0
;
/** A temporal buffer. */
static
fp_value
*
calc_buffer
=
NULL
;
...
...
@@ -1578,15 +1575,6 @@ int fc_flt2int(const fp_value *a, void *result, ir_mode *dst_mode)
return
0
;
}
unsigned
fc_set_immediate_precision
(
unsigned
bits
)
{
unsigned
old
=
immediate_prec
;
immediate_prec
=
bits
;
return
old
;
}
int
fc_is_exact
(
void
)
{
return
fc_exact
;
...
...
ir/tv/fltcalc.h
View file @
e0fc2155
...
...
@@ -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
);
/**
* 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.
*/
...
...
ir/tv/tv.c
View file @
e0fc2155
...
...
@@ -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
);
}
/* 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. */
unsigned
tarval_ieee754_get_exact
(
void
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment