Skip to content
Snippets Groups Projects
Commit 761a49c1 authored by Nicolas Thill's avatar Nicolas Thill
Browse files

add rintf wrapper to libnotimpl

SVN-Revision: 2190
parent 1e6f6740
No related branches found
No related tags found
No related merge requests found
/* vi: set sw=4 ts=4: */ /* vi: set sw=4 ts=4: */
#include "math.h"
/* cosf for uClibc /* cosf for uClibc
* *
* wrapper for cos(x) * wrapper for cos(x)
*/ */
#include "math.h"
#ifdef __STDC__ #ifdef __STDC__
float cosf(float x) /* wrapper cos */ float cosf(float x)
#else #else
float cosf(x) /* wrapper cos */ float cosf(x)
float x; float x;
#endif #endif
{ {
...@@ -22,12 +22,25 @@ ...@@ -22,12 +22,25 @@
* wrapper for sin(x) * wrapper for sin(x)
*/ */
#include "math.h" #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)
*/
#ifdef __STDC__ #ifdef __STDC__
float sinf(float x) /* wrapper sin */ float rintf(float x)
#else #else
float sinf(x) /* wrapper sin */ float rintf(x)
float x; float x;
#endif #endif
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment