URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 318 |
Rev 384 |
/* { dg-do link } */
|
/* { dg-do link } */
|
/* { dg-require-effective-target ilp32 } */
|
/* { dg-require-effective-target ilp32 } */
|
/* { dg-options "-O2 -march=pentiumpro" } */
|
/* { dg-options "-O2 -march=pentiumpro" } */
|
|
|
extern __inline double
|
extern __inline double
|
__expm1 (double __x)
|
__expm1 (double __x)
|
{
|
{
|
double __temp;
|
double __temp;
|
__temp = 1.0;
|
__temp = 1.0;
|
return __temp;
|
return __temp;
|
}
|
}
|
extern __inline double
|
extern __inline double
|
__sgn1 (double __x)
|
__sgn1 (double __x)
|
{
|
{
|
return __x >= 0.0 ? 1.0 : -1.0;
|
return __x >= 0.0 ? 1.0 : -1.0;
|
}
|
}
|
double
|
double
|
tanh (double __x)
|
tanh (double __x)
|
{
|
{
|
return __expm1 (__x) * __sgn1 (-__x);
|
return __expm1 (__x) * __sgn1 (-__x);
|
}
|
}
|
main ()
|
main ()
|
{
|
{
|
return tanh (3.45) != 0;
|
return tanh (3.45) != 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.