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