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 |
// { dg-do assemble }
|
// { dg-do assemble }
|
|
|
template struct PartialDotProduct {
|
template struct PartialDotProduct {
|
template
|
template
|
static T Expand(T* a, T* b) { return T(); }
|
static T Expand(T* a, T* b) { return T(); }
|
};
|
};
|
|
|
const int N = 10;
|
const int N = 10;
|
|
|
template
|
template
|
void
|
void
|
dot(In1 f1, In2 f2)
|
dot(In1 f1, In2 f2)
|
{
|
{
|
PartialDotProduct::Expand(f1, f2);
|
PartialDotProduct::Expand(f1, f2);
|
|
|
}
|
}
|
|
|
int main()
|
int main()
|
{
|
{
|
double a[N], b[N];
|
double a[N], b[N];
|
|
|
dot(&a[0], &b[0]);
|
dot(&a[0], &b[0]);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.