projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
366e963
)
replaced the max macro
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Wed, 5 Sep 2007 13:49:44 +0000
(13:49 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Wed, 5 Sep 2007 13:49:44 +0000
(13:49 +0000)
[r15677]
ir/ir/irarch.c
patch
|
blob
|
history
diff --git
a/ir/ir/irarch.c
b/ir/ir/irarch.c
index
4684d50
..
e7b0405
100644
(file)
--- a/
ir/ir/irarch.c
+++ b/
ir/ir/irarch.c
@@
-414,6
+414,8
@@
static instruction *decompose_mul(mul_env *env, unsigned char *R, int r, tarval
return basic_decompose_mul(env, R, r, N);
}
+#define IMAX(a,b) ((a) > (b) ? (a) : (b))
+
/**
* basic decomposition routine
*/
@@
-422,7
+424,7
@@
static instruction *basic_decompose_mul(mul_env *env, unsigned char *R, int r, t
unsigned t;
if (R[0] == 0) { /* Case 1 */
- t = R[1] >
max
(env->max_S, R[1]);
+ t = R[1] >
IMAX
(env->max_S, R[1]);
R[1] -= t;
Ns = decompose_mul(env, &R[1], r - 1, N);
return emit_LEA(env, env->root, Ns, t);