projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bechordal: Remove remnants of the long gone split phase.
[libfirm]
/
ir
/
stat
/
const_stat.c
diff --git
a/ir/stat/const_stat.c
b/ir/stat/const_stat.c
index
11473fa
..
8941fa1
100644
(file)
--- 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
* @file
* @brief Statistic functions for constant counting.
* @author Michael Beck
- * @version $Id$
*/
#include "config.h"
*/
#include "config.h"
@@
-65,7
+64,7
@@
static unsigned log2abs(long value)
/**
* classify the value of a float tarval
*/
/**
* 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);
{
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;
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)
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)
{
/* 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)) {
(void) graph;
if (mode_is_int(mode)) {