OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr31034.c] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
static inline int
2
mod (int a, int n)
3
{
4
  return a >= n ? a % n : a;
5
}
6
void dpara(int);
7
void opticurve (int m)
8
{
9
  int i;
10
  for (i = 0; i < m; i++)
11
    {
12
        dpara(mod (i - 1, m));
13
    }
14
}

powered by: WebSVN 2.1.0

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