From ed4356df9ef88416044c47376cd69cba272f3340 Mon Sep 17 00:00:00 2001 From: spop Date: Wed, 25 Nov 2009 05:02:58 +0000 Subject: [PATCH] * testsuite/gcc.dg/graphite/id-15.c: Adjusted. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154579 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 89ff32f7620..b57c209698e 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.11.0