2005-10-06 00:30:33 +03:00
|
|
|
/* vi: set sw=4 ts=4: */
|
|
|
|
|
2005-10-20 11:08:06 +03:00
|
|
|
#include "math.h"
|
|
|
|
|
2005-10-06 00:30:33 +03:00
|
|
|
/* cosf for uClibc
|
|
|
|
*
|
|
|
|
* wrapper for cos(x)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __STDC__
|
2005-10-20 11:08:06 +03:00
|
|
|
float cosf(float x)
|
2005-10-06 00:30:33 +03:00
|
|
|
#else
|
2005-10-20 11:08:06 +03:00
|
|
|
float cosf(x)
|
2005-10-06 00:30:33 +03:00
|
|
|
float x;
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
return (float) cos( (double)x );
|
|
|
|
}
|
|
|
|
|
|
|
|
/* sinf for uClibc
|
|
|
|
*
|
|
|
|
* wrapper for sin(x)
|
|
|
|
*/
|
|
|
|
|
2005-10-20 11:08:06 +03:00
|
|
|
#ifdef __STDC__
|
|
|
|
float sinf(float x)
|
|
|
|
#else
|
|
|
|
float sinf(x)
|
|
|
|
float x;
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
return (float) sin( (double)x );
|
|
|
|
}
|
|
|
|
|
|
|
|
/* rintf for uClibc
|
|
|
|
*
|
|
|
|
* wrapper for rint(x)
|
|
|
|
*/
|
2005-10-06 00:30:33 +03:00
|
|
|
|
|
|
|
#ifdef __STDC__
|
2005-10-20 11:08:06 +03:00
|
|
|
float rintf(float x)
|
2005-10-06 00:30:33 +03:00
|
|
|
#else
|
2005-10-20 11:08:06 +03:00
|
|
|
float rintf(x)
|
2005-10-06 00:30:33 +03:00
|
|
|
float x;
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
return (float) sin( (double)x );
|
|
|
|
}
|