]> git.enpas.org Git - openwrt.git/commitdiff
fix typo and wrong func call in rint()
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 26 Apr 2006 05:50:16 +0000 (05:50 +0000)
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 26 Apr 2006 05:50:16 +0000 (05:50 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3707 3c298f89-4303-0410-b956-a3cf2f4a3e73

openwrt/toolchain/libnotimpl/files/math.c

index a16ea740ead2378a09419e9744a0deaab29118ac..7333a36a250aa2c12107432dd77e2294a1cd893b 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 );
 }