From c50fbbaf078437bdb556fe8b96d42df31da819b8 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Thu, 2 Nov 2006 22:08:32 +0000 Subject: [PATCH] Add wrapper for other functions (used by sox) SVN-Revision: 5381 --- 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 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 ); +} + -- 2.30.2