X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fstat%2Fconst_stat.c;h=8941fa1ddca2d6afc0f7254ba4d5673f6c8620a8;hb=4752f6775544c51874275686d035b9c39b911747;hp=11473fa4ff4baa45f094f6ab02c30a8479a3f3ce;hpb=fa370945a3996a87ce55b758d27013c75b206834;p=libfirm diff --git a/ir/stat/const_stat.c b/ir/stat/const_stat.c index 11473fa4f..8941fa1dd 100644 --- a/ir/stat/const_stat.c +++ b/ir/stat/const_stat.c @@ -21,7 +21,6 @@ * @file * @brief Statistic functions for constant counting. * @author Michael Beck - * @version $Id$ */ #include "config.h" @@ -65,7 +64,7 @@ static unsigned log2abs(long value) /** * classify the value of a float tarval */ -static float_classify_t classify_float_value(tarval *tv) +static float_classify_t classify_float_value(ir_tarval *tv) { ir_mode *mode = get_tarval_mode(tv); @@ -73,8 +72,8 @@ static float_classify_t classify_float_value(tarval *tv) return STAT_FC_0; else if (tv == get_mode_one(mode)) return STAT_FC_1; - else if (tarval_is_finite(tv) && tarval_ieee754_zero_mantissa(tv)) { - int exp = tarval_ieee754_get_exponent(tv); + else if (tarval_is_finite(tv) && tarval_zero_mantissa(tv)) { + int exp = tarval_get_exponent(tv); if (! tarval_is_negative(tv)) { if (exp == 1) @@ -104,9 +103,9 @@ const char *stat_fc_name(float_classify_t classification) /* update info on Consts */ void stat_update_const(stat_info_t *status, ir_node *node, graph_entry_t *graph) { - ir_mode *mode = get_irn_mode(node); - tarval *tv; - unsigned bits; + ir_mode *mode = get_irn_mode(node); + ir_tarval *tv; + unsigned bits; (void) graph; if (mode_is_int(mode)) {