rename toolchain/libmissing to libnotimpl (fix dnsiff build)
[openwrt/svn-archive/archive.git] / openwrt / toolchain / libnotimpl / files / math.c
1 /* vi: set sw=4 ts=4: */
2
3 /* cosf for uClibc
4 *
5 * wrapper for cos(x)
6 */
7
8 #include "math.h"
9
10 #ifdef __STDC__
11 float cosf(float x) /* wrapper cos */
12 #else
13 float cosf(x) /* wrapper cos */
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 #include "math.h"
26
27 #ifdef __STDC__
28 float sinf(float x) /* wrapper sin */
29 #else
30 float sinf(x) /* wrapper sin */
31 float x;
32 #endif
33 {
34 return (float) sin( (double)x );
35 }