From ee3a52d794c4deac1a5d3b618545b38521ed1dd6 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Wed, 25 Nov 2009 05:02:58 +0000 Subject: [PATCH] * testsuite/gcc.dg/graphite/id-15.c: Adjusted. From-SVN: r154579 --- gcc/testsuite/gcc.dg/graphite/id-15.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gcc/testsuite/gcc.dg/graphite/id-15.c b/gcc/testsuite/gcc.dg/graphite/id-15.c index 89ff32f..b57c209 100644 --- a/gcc/testsuite/gcc.dg/graphite/id-15.c +++ b/gcc/testsuite/gcc.dg/graphite/id-15.c @@ -9,10 +9,10 @@ encode (words, low, hi) unsigned long low; long hi; { - words[0] = ((low) & (((unsigned long) 1 << ((8 * 8) / 2)) - 1)); - words[1] = ((unsigned long) (low) >> (8 * 8) / 2); - words[2] = ((hi) & (((unsigned long) 1 << ((8 * 8) / 2)) - 1)); - words[3] = ((unsigned long) (hi) >> (8 * 8) / 2); + words[0] = ((low) & (((unsigned long) 1 << (sizeof(unsigned long) / 2)) - 1)); + words[1] = ((unsigned long) (low) >> sizeof(unsigned long) / 2); + words[2] = ((hi) & (((unsigned long) 1 << (sizeof(unsigned long) / 2)) - 1)); + words[3] = ((unsigned long) (hi) >> sizeof(unsigned long) / 2); } static void @@ -21,8 +21,8 @@ decode (words, low, hi) unsigned long *low; long *hi; { - *low = words[0] + words[1] * ((unsigned long) 1 << (8 * 8) / 2); - *hi = words[2] + words[3] * ((unsigned long) 1 << (8 * 8) / 2); + *low = words[0] + words[1] * ((unsigned long) 1 << sizeof(unsigned long) / 2); + *hi = words[2] + words[3] * ((unsigned long) 1 << sizeof(unsigned long) / 2); } int @@ -94,8 +94,8 @@ mul_double (l1, h1, l2, h2, lv, hv) carry += arg1[i] * arg2[j]; carry += prod[k]; - prod[k] = ((carry) & (((unsigned long) 1 << ((8 * 8) / 2)) - 1)); - carry = ((unsigned long) (carry) >> (8 * 8) / 2); + prod[k] = ((carry) & (((unsigned long) 1 << (sizeof(unsigned long) / 2)) - 1)); + carry = ((unsigned long) (carry) >> sizeof(unsigned long) / 2); } prod[i + 4] = carry; } -- 2.7.4