add pcmcia-cs package
[openwrt.git] / openwrt / toolchain / libnotimpl / files / math.c
1 /* vi: set sw=4 ts=4: */
2
3 #include "math.h"
4
5
6 /* cosf for uClibc
7 *
8 * wrapper for cos(x)
9 */
10
11 #ifdef __STDC__
12 float cosf(float x)
13 #else
14 float cosf(x)
15 float x;
16 #endif
17 {
18 return (float) cos( (double)x );
19 }
20
21
22 /* sinf for uClibc
23 *
24 * wrapper for sin(x)
25 */
26
27 #ifdef __STDC__
28 float sinf(float x)
29 #else
30 float sinf(x)
31 float x;
32 #endif
33 {
34 return (float) sin( (double)x );
35 }
36
37
38 /* ceilf for uClibc
39 *
40 * wrapper for ceil(x)
41 */
42
43 #ifdef __STDC__
44 float ceilf(float x)
45 #else
46 float rintf(x)
47 float x;
48 #endif
49 {
50 return (float) ceil( (double)x );
51 }
52
53
54 /* rintf for uClibc
55 *
56 * wrapper for rint(x)
57 */
58
59 #ifdef __STDC__
60 float rintf(float x)
61 #else
62 float rintf(x)
63 float x;
64 #endif
65 {
66 return (float) sin( (double)x );
67 }
68
This page took 0.047875 seconds and 5 git commands to generate.