Add wrapper for other functions (used by sox)
authorFlorian Fainelli <florian@openwrt.org>
Thu, 2 Nov 2006 22:08:32 +0000 (22:08 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 2 Nov 2006 22:08:32 +0000 (22:08 +0000)
SVN-Revision: 5381

libs/libnotimpl/src/math.c

index 862adddafcdc45ab05c8a03a4fe9e8555798c0e8..096676371c178ba618fb4d2842249f15e2eae216 100644 (file)
        return (float) rint( (double)x );
 }
 
+/* logf for uClibc
+ * 
+ * wrapper for logf(x)
+ */
+
+#ifdef __STDC__
+       float logf(float x)
+#else
+       float logf(x)
+       float x;
+#endif
+{
+       return (float) logf( (double)x );
+}
+
+/* expf for uClibc
+ *
+ * wrapper for expf(x)
+ */
+
+#ifdef __STDC__
+    float expf(float x)
+#else
+    float expf(x)
+    float x;
+#endif
+{
+    return (float) expf( (double)x );
+}
+