projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add miredo package
[openwrt.git]
/
openwrt
/
toolchain
/
libnotimpl
/
files
/
math.c
diff --git
a/openwrt/toolchain/libnotimpl/files/math.c
b/openwrt/toolchain/libnotimpl/files/math.c
index
cc8a661
..
8934197
100644
(file)
--- a/
openwrt/toolchain/libnotimpl/files/math.c
+++ b/
openwrt/toolchain/libnotimpl/files/math.c
@@
-1,16
+1,16
@@
/* vi: set sw=4 ts=4: */
/* vi: set sw=4 ts=4: */
+#include "math.h"
+
/* cosf for uClibc
*
* wrapper for cos(x)
*/
/* cosf for uClibc
*
* 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;
#endif
{
float x;
#endif
{
@@
-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;
#endif
{
float x;
#endif
{
This page took
0.028964 seconds
and
4
git commands to generate.