From c115a42f9109ba2f6d6c96880ca7f59ab9212bff Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 5 Sep 2007 13:49:44 +0000 Subject: [PATCH] replaced the max macro [r15677] --- ir/ir/irarch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ir/ir/irarch.c b/ir/ir/irarch.c index 4684d5057..e7b04058c 100644 --- 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); -- 2.20.1