From 51309904710c2a79783524e96ac0d90c3ad8dccf Mon Sep 17 00:00:00 2001 From: florian Date: Thu, 2 Nov 2006 22:08:32 +0000 Subject: [PATCH] Add wrapper for other functions (used by sox) git-svn-id: svn://svn.openwrt.org/openwrt/packages@5381 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- libs/libnotimpl/src/math.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/libs/libnotimpl/src/math.c b/libs/libnotimpl/src/math.c index 862adddaf..096676371 100644 --- 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 ); +} +