From: Florian Fainelli Date: Thu, 2 Nov 2006 22:08:32 +0000 (+0000) Subject: Add wrapper for other functions (used by sox) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c50fbbaf078437bdb556fe8b96d42df31da819b8;p=openwrt%2Fsvn-archive%2Farchive.git Add wrapper for other functions (used by sox) SVN-Revision: 5381 --- diff --git a/libs/libnotimpl/src/math.c b/libs/libnotimpl/src/math.c index 862adddafc..096676371c 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 ); +} +