URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
struct ii
|
struct ii
|
{
|
{
|
int a;
|
int a;
|
int b;
|
int b;
|
};
|
};
|
|
|
struct foo
|
struct foo
|
{
|
{
|
int a;
|
int a;
|
struct ii ab;
|
struct ii ab;
|
int b;
|
int b;
|
};
|
};
|
|
|
struct ii
|
struct ii
|
foo (int *p, struct foo a)
|
foo (int *p, struct foo a)
|
{
|
{
|
p[0] = a.a;
|
p[0] = a.a;
|
p[1] = a.ab.a;
|
p[1] = a.ab.a;
|
p[2] = a.ab.b;
|
p[2] = a.ab.b;
|
p[3] = a.b;
|
p[3] = a.b;
|
return a.ab;
|
return a.ab;
|
}
|
}
|
|
|
str (struct ii ab, struct ii *p)
|
str (struct ii ab, struct ii *p)
|
{
|
{
|
*p = ab;
|
*p = ab;
|
}
|
}
|
|
|
ll (long long ab, long long *p)
|
ll (long long ab, long long *p)
|
{
|
{
|
*p = ab;
|
*p = ab;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.