summaryrefslogtreecommitdiff
path: root/cloog-0.17.0/test/tiling.good.c
blob: b7362867fed2e2145942b6dd582ae1b623aecd8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Generated from ../../../git/cloog/test/tiling.cloog by CLooG 0.14.0-72-gefe2fc2 gmp bits in 0.00s. */
extern void hash(int);

/* Useful macros. */
#define floord(n,d) (((n)<0) ? -((-(n)+(d)-1)/(d)) : (n)/(d))
#define ceild(n,d)  (((n)<0) ? -((-(n))/(d)) : ((n)+(d)-1)/(d))
#define max(x,y)    ((x) > (y) ? (x) : (y))
#define min(x,y)    ((x) < (y) ? (x) : (y))

#define S1(ii,i) { hash(1); hash(ii); hash(i); }

void test(int n)
{
  /* Original iterators. */
  int ii, i;
  for (ii=0;ii<=floord(n,10);ii++) {
    for (i=max(10*ii,0);i<=min(10*ii+9,n);i++) {
      S1(ii,i) ;
    }
  }
}