Commit f9aca7aa authored by yb9976's avatar yb9976
Browse files

Constify mode parameter.

parent 84fcb507
......@@ -646,7 +646,7 @@ FIRM_API int tarval_get_exponent(const ir_tarval *tv);
* @param tv the tarval
* @param mode the mode to convert to
*/
FIRM_API int tarval_ieee754_can_conv_lossless(const ir_tarval *tv, ir_mode *mode);
FIRM_API int tarval_ieee754_can_conv_lossless(const ir_tarval *tv, const ir_mode *mode);
/**
* Returns non-zero if the result of the last IEEE-754 operation was exact.
......
......@@ -1312,7 +1312,7 @@ int tarval_get_exponent(const ir_tarval *tv)
return fc_get_exponent((const fp_value*) tv->value);
}
int tarval_ieee754_can_conv_lossless(const ir_tarval *tv, ir_mode *mode)
int tarval_ieee754_can_conv_lossless(const ir_tarval *tv, const ir_mode *mode)
{
const float_descriptor_t *desc = get_descriptor(mode);
return fc_can_lossless_conv_to((const fp_value*) tv->value, desc);
......
Supports Markdown
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