OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr34966.c] - Rev 298

Go to most recent revision | Compare with Previous | Blame | View Log

extern double sin (double), cos (double);
 
__inline double
atan (double __x)
{
  register double __result;
#if defined(__i386__) || defined(__x86_64__)
  __asm __volatile__ ("" : "=t" (__result) : "0" (__x));
#else
  __result = __x;
#endif
  return __result;
}
 
double
f(double x)
{
  double t = atan (x);
  return cos (t) + sin (t);
}
 
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.