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-11-06 07:51:42 +02:00
|
|
|
|
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 );
|
|
|
|
}
|
|
|
|
|
2005-11-06 07:51:42 +02:00
|
|
|
|
2005-10-06 00:30:33 +03:00
|
|
|
/* 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 );
|
|
|
|
}
|
|
|
|
|
2005-11-06 07:51:42 +02:00
|
|
|
|
|
|
|
/* ceilf for uClibc
|
|
|
|
*
|
|
|
|
* wrapper for ceil(x)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __STDC__
|
|
|
|
float ceilf(float x)
|
|
|
|
#else
|
|
|
|
float rintf(x)
|
|
|
|
float x;
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
return (float) ceil( (double)x );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-10-20 11:08:06 +03:00
|
|
|
/* 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 );
|
|
|
|
}
|
2005-11-06 07:51:42 +02:00
|
|
|
|