summaryrefslogtreecommitdiffstats
path: root/toolchain/libnotimpl/files/math.c
blob: cc8a661ac55e5471e7d64105bda73e3321cbc54d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* vi: set sw=4 ts=4: */

/* cosf for uClibc
 *
 * wrapper for cos(x)
 */

#include "math.h"

#ifdef __STDC__
	float cosf(float x)		/* wrapper cos */
#else
	float cosf(x)			/* wrapper cos */
	float x;
#endif
{
	return (float) cos( (double)x );
}

/* sinf for uClibc
 *
 * wrapper for sin(x)
 */

#include "math.h"

#ifdef __STDC__
	float sinf(float x)		/* wrapper sin */
#else
	float sinf(x)			/* wrapper sin */
	float x;
#endif
{
	return (float) sin( (double)x );
}