URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
#ifdef STACK_SIZE
|
#ifdef STACK_SIZE
|
#define SIZE STACK_SIZE / 8
|
#define SIZE STACK_SIZE / 8
|
#else
|
#else
|
#define SIZE 65536
|
#define SIZE 65536
|
#endif
|
#endif
|
|
|
memtst (int *p, int a)
|
memtst (int *p, int a)
|
{
|
{
|
do
|
do
|
{
|
{
|
if (p[a] == 1)
|
if (p[a] == 1)
|
break;
|
break;
|
}
|
}
|
while (--a);
|
while (--a);
|
}
|
}
|
|
|
main ()
|
main ()
|
{
|
{
|
int a[SIZE];
|
int a[SIZE];
|
int i;
|
int i;
|
bzero (a, SIZE * 4);
|
bzero (a, SIZE * 4);
|
for (i = 0; i < 100; i++)
|
for (i = 0; i < 100; i++)
|
{
|
{
|
memtst (a, SIZE);
|
memtst (a, SIZE);
|
}
|
}
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.