projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove stray declaration
[libfirm]
/
ir
/
stat
/
const_stat.c
diff --git
a/ir/stat/const_stat.c
b/ir/stat/const_stat.c
index
ce2f1ca
..
296e74b
100644
(file)
--- a/
ir/stat/const_stat.c
+++ b/
ir/stat/const_stat.c
@@
-27,6
+27,7
@@
#include "firmstat_t.h"
#include "tv_t.h"
#include "firmstat_t.h"
#include "tv_t.h"
+#include "util.h"
/**
* calculated the dual logarithm of |value|
/**
* calculated the dual logarithm of |value|
@@
-64,7
+65,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);
@@
-103,9
+104,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)) {
@@
-117,8
+118,8
@@
void stat_update_const(stat_info_t *status, ir_node *node, graph_entry_t *graph)
bits = log2abs(get_tarval_long(tv));
bits = log2abs(get_tarval_long(tv));
- if (bits > ARR_SIZE(status->const_info.int_bits_count))
- bits = ARR_SIZE(status->const_info.int_bits_count);
+ if (bits > ARR
AY
_SIZE(status->const_info.int_bits_count))
+ bits = ARR
AY
_SIZE(status->const_info.int_bits_count);
cnt_inc(&status->const_info.int_bits_count[bits]);
} else if (mode_is_float(mode)) {
cnt_inc(&status->const_info.int_bits_count[bits]);
} else if (mode_is_float(mode)) {
@@
-136,10
+137,10
@@
void stat_const_clear(stat_info_t *status)
{
size_t i;
{
size_t i;
- for (i = 0; i < ARR_SIZE(status->const_info.int_bits_count); ++i)
+ for (i = 0; i < ARR
AY
_SIZE(status->const_info.int_bits_count); ++i)
cnt_clr(&status->const_info.int_bits_count[i]);
cnt_clr(&status->const_info.int_bits_count[i]);
- for (i = 0; i < ARR_SIZE(status->const_info.floats); ++i)
+ for (i = 0; i < ARR
AY
_SIZE(status->const_info.floats); ++i)
cnt_clr(&status->const_info.floats[i]);
cnt_clr(&status->const_info.others);
cnt_clr(&status->const_info.floats[i]);
cnt_clr(&status->const_info.others);