URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 384 |
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
|
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
|
|
|
typedef struct
|
typedef struct
|
{
|
{
|
int data[1024];
|
int data[1024];
|
}
|
}
|
Lint;
|
Lint;
|
Lint lint_operate (Lint a, long long ammount)
|
Lint lint_operate (Lint a, long long ammount)
|
{
|
{
|
int index;
|
int index;
|
Lint ret;
|
Lint ret;
|
for (index = 0; index < 24; index++)
|
for (index = 0; index < 24; index++)
|
ret.data[index] =
|
ret.data[index] =
|
a.data[index + ammount / 32 + 1] << a.data[index + ammount / 32];
|
a.data[index + ammount / 32 + 1] << a.data[index + ammount / 32];
|
return ret;
|
return ret;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.