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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [memtst.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
#ifdef STACK_SIZE
2
#define SIZE STACK_SIZE / 8
3
#else
4
#define SIZE 65536
5
#endif
6
 
7
memtst (int *p, int a)
8
{
9
  do
10
    {
11
      if (p[a] == 1)
12
        break;
13
    }
14
  while (--a);
15
}
16
 
17
main ()
18
{
19
  int a[SIZE];
20
  int i;
21
  bzero (a, SIZE * 4);
22
  for (i = 0;  i < 100;  i++)
23
    {
24
      memtst (a, SIZE);
25
    }
26
}

powered by: WebSVN 2.1.0

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