* @file
* @brief Statistic functions for constant counting.
* @author Michael Beck
- * @version $Id$
*/
#include "config.h"
/**
* 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);
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)
/* 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)) {