fix typo and wrong func call in rint()
authorNicolas Thill <nico@openwrt.org>
Wed, 26 Apr 2006 05:50:16 +0000 (05:50 +0000)
committerNicolas Thill <nico@openwrt.org>
Wed, 26 Apr 2006 05:50:16 +0000 (05:50 +0000)
SVN-Revision: 3707

openwrt/toolchain/libnotimpl/files/math.c

index a16ea74..7333a36 100644 (file)
@@ -43,7 +43,7 @@
 #ifdef __STDC__
        float ceilf(float x)
 #else
-       float rintf(x)
+       float ceilf(x)
        float x;
 #endif
 {
@@ -63,6 +63,6 @@
        float x;
 #endif
 {
-       return (float) sin( (double)x );
+       return (float) rint( (double)x );
 }