OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20110902.c] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
static inline __attribute__((always_inline)) int f (unsigned int n, unsigned int size)
2
{
3
 return (__builtin_constant_p (size != 0 && n > ~0 / size)
4
         ? !!(size != 0 && n > ~0 / size)
5
         : ({ static unsigned int count[2] = { 0, 0 };
6
              int r = !!(size != 0 && n > ~0 / size);
7
              count[r]++;
8
              r; }));
9
}
10
 
11
int g (unsigned int size)
12
{
13
 return f (size / 4096, 4);
14
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.