projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix weak external functions
[libfirm]
/
ir
/
stat
/
counter.h
diff --git
a/ir/stat/counter.h
b/ir/stat/counter.h
index
9bcbbaf
..
d43936b
100644
(file)
--- a/
ir/stat/counter.h
+++ b/
ir/stat/counter.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-200
7
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-46,7
+46,7
@@
typedef struct _counter_t {
/**
* increase a counter
*/
/**
* increase a counter
*/
-static
INLINE
void cnt_inc(counter_t *cnt)
+static
inline
void cnt_inc(counter_t *cnt)
{
int i;
{
int i;
@@
-59,12
+59,12
@@
static INLINE void cnt_inc(counter_t *cnt)
/**
* decrease a counter
*/
/**
* decrease a counter
*/
-static
INLINE
void cnt_dec(counter_t *cnt)
+static
inline
void cnt_dec(counter_t *cnt)
{
int i;
for (i = 0; i < STAT_CNT_NUM; ++i) {
{
int i;
for (i = 0; i < STAT_CNT_NUM; ++i) {
- if (--cnt->cnt[i] != -1)
+ if (--cnt->cnt[i] !=
(unsigned)
-1)
break;
}
}
break;
}
}
@@
-72,7
+72,7
@@
static INLINE void cnt_dec(counter_t *cnt)
/**
* set a counter to zero
*/
/**
* set a counter to zero
*/
-static
INLINE
void cnt_clr(counter_t *cnt)
+static
inline
void cnt_clr(counter_t *cnt)
{
memset(cnt->cnt, 0, sizeof(cnt->cnt));
}
{
memset(cnt->cnt, 0, sizeof(cnt->cnt));
}
@@
-80,7
+80,7
@@
static INLINE void cnt_clr(counter_t *cnt)
/**
* add a counter to another
*/
/**
* add a counter to another
*/
-static
INLINE
void cnt_add(counter_t *dst, const counter_t *src)
+static
inline
void cnt_add(counter_t *dst, const counter_t *src)
{
int i, carry = 0;
{
int i, carry = 0;
@@
-98,7
+98,7
@@
static INLINE void cnt_add(counter_t *dst, const counter_t *src)
/**
* add an (positive) integer to an counter
*/
/**
* add an (positive) integer to an counter
*/
-static
INLINE
void cnt_add_i(counter_t *dst, int src)
+static
inline
void cnt_add_i(counter_t *dst, int src)
{
int i;
unsigned carry = src;
{
int i;
unsigned carry = src;
@@
-118,7
+118,7
@@
static INLINE void cnt_add_i(counter_t *dst, int src)
/**
* compare two counter
*/
/**
* compare two counter
*/
-static
INLINE
int cnt_cmp(const counter_t *a, const counter_t *b)
+static
inline
int cnt_cmp(const counter_t *a, const counter_t *b)
{
int i;
unsigned va, vb;
{
int i;
unsigned va, vb;
@@
-139,7
+139,7
@@
static INLINE int cnt_cmp(const counter_t *a, const counter_t *b)
/**
* convert a counter into a double
*/
/**
* convert a counter into a double
*/
-static
INLINE
double cnt_to_dbl(const counter_t *a)
+static
inline
double cnt_to_dbl(const counter_t *a)
{
int i;
double res = 0.0, scale = 1.0, tmp;
{
int i;
double res = 0.0, scale = 1.0, tmp;
@@
-158,7
+158,7
@@
static INLINE double cnt_to_dbl(const counter_t *a)
/**
* convert a counter into an unsigned
*/
/**
* convert a counter into an unsigned
*/
-static
INLINE
unsigned cnt_to_uint(const counter_t *a)
+static
inline
unsigned cnt_to_uint(const counter_t *a)
{
int i;
{
int i;
@@
-172,7
+172,7
@@
static INLINE unsigned cnt_to_uint(const counter_t *a)
/**
* check, if a counter is equal to an unsigned
*/
/**
* check, if a counter is equal to an unsigned
*/
-static
INLINE
int cnt_eq(const counter_t *a, unsigned value)
+static
inline
int cnt_eq(const counter_t *a, unsigned value)
{
int i;
{
int i;
@@
-186,7
+186,7
@@
static INLINE int cnt_eq(const counter_t *a, unsigned value)
/**
* check, if a counter as greater than an unsigned
*/
/**
* check, if a counter as greater than an unsigned
*/
-static
INLINE
int cnt_gt(const counter_t *a, unsigned value)
+static
inline
int cnt_gt(const counter_t *a, unsigned value)
{
int i;
{
int i;