projects
/
openwrt
/
svn-archive
/
archive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83eecb2
)
Add wrapper for other functions (used by sox)
author
Florian Fainelli
<florian@openwrt.org>
Thu, 2 Nov 2006 22:08:32 +0000
(22:08 +0000)
committer
Florian Fainelli
<florian@openwrt.org>
Thu, 2 Nov 2006 22:08:32 +0000
(22:08 +0000)
SVN-Revision: 5381
libs/libnotimpl/src/math.c
patch
|
blob
|
history
diff --git
a/libs/libnotimpl/src/math.c
b/libs/libnotimpl/src/math.c
index 862adddafcdc45ab05c8a03a4fe9e8555798c0e8..096676371c178ba618fb4d2842249f15e2eae216 100644
(file)
--- a/
libs/libnotimpl/src/math.c
+++ b/
libs/libnotimpl/src/math.c
@@
-66,3
+66,33
@@
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 );
+}
+