projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
8934197d8dcb7bd9d1495dfd33919b486e94f0ab
[openwrt.git]
/
toolchain
/
libnotimpl
/
files
/
math.c
1
/* vi: set sw=4 ts=4: */
2
3
#include "math.h"
4
5
/* cosf for uClibc
6
*
7
* wrapper for cos(x)
8
*/
9
10
#ifdef __STDC__
11
float cosf(float x)
12
#else
13
float cosf(x)
14
float x;
15
#endif
16
{
17
return (float) cos( (double)x );
18
}
19
20
/* sinf for uClibc
21
*
22
* wrapper for sin(x)
23
*/
24
25
#ifdef __STDC__
26
float sinf(float x)
27
#else
28
float sinf(x)
29
float x;
30
#endif
31
{
32
return (float) sin( (double)x );
33
}
34
35
/* rintf for uClibc
36
*
37
* wrapper for rint(x)
38
*/
39
40
#ifdef __STDC__
41
float rintf(float x)
42
#else
43
float rintf(x)
44
float x;
45
#endif
46
{
47
return (float) sin( (double)x );
48
}