URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
struct C
|
struct C
|
{
|
{
|
~C ();
|
~C ();
|
int c3;
|
int c3;
|
};
|
};
|
|
|
C *b2;
|
C *b2;
|
|
|
static void
|
static void
|
b1 (const C &x, unsigned b3, unsigned b4)
|
b1 (const C &x, unsigned b3, unsigned b4)
|
{
|
{
|
unsigned i = 0;
|
unsigned i = 0;
|
for (; i < b3; i++)
|
for (; i < b3; i++)
|
if (i < b4)
|
if (i < b4)
|
{
|
{
|
b2[0].c3 = x.c3;
|
b2[0].c3 = x.c3;
|
return;
|
return;
|
}
|
}
|
}
|
}
|
|
|
int a ();
|
int a ();
|
|
|
void
|
void
|
bar (unsigned b3, unsigned b4)
|
bar (unsigned b3, unsigned b4)
|
{
|
{
|
C c[100];
|
C c[100];
|
for (int i = 0; i < 100; i++)
|
for (int i = 0; i < 100; i++)
|
{
|
{
|
c[i].c3 = i;
|
c[i].c3 = i;
|
for (int j = 0; j < b3; j++)
|
for (int j = 0; j < b3; j++)
|
if (j < b4)
|
if (j < b4)
|
{
|
{
|
b2[0].c3 = 0;
|
b2[0].c3 = 0;
|
break;
|
break;
|
}
|
}
|
b1 (c[i], b3, b4);
|
b1 (c[i], b3, b4);
|
a ();
|
a ();
|
}
|
}
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.