URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 338 |
typedef float floatvect2 __attribute__((vector_size (8)));
|
typedef float floatvect2 __attribute__((vector_size (8)));
|
|
|
typedef union
|
typedef union
|
{
|
{
|
floatvect2 vector;
|
floatvect2 vector;
|
float f[2];
|
float f[2];
|
}resfloatvect2;
|
}resfloatvect2;
|
|
|
void tempf(float *x, float *y)
|
void tempf(float *x, float *y)
|
{
|
{
|
floatvect2 temp={x[0],x[1]};
|
floatvect2 temp={x[0],x[1]};
|
floatvect2 temp1={y[0],y[1]};
|
floatvect2 temp1={y[0],y[1]};
|
resfloatvect2 temp2;
|
resfloatvect2 temp2;
|
temp2.vector=temp+temp1;
|
temp2.vector=temp+temp1;
|
x[0]=temp2.f[0];
|
x[0]=temp2.f[0];
|
x[1]=temp2.f[1];
|
x[1]=temp2.f[1];
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.