aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/c99_math.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/c99_math.h b/include/c99_math.h
index 6680f540db3..bb4bbd1a07f 100644
--- a/include/c99_math.h
+++ b/include/c99_math.h
@@ -82,6 +82,17 @@ static inline float logf( float f )
return (float) log( (double) f );
}
+static inline float frexpf(float x, int *exp)
+{
+ return (float) frexp(x, exp);
+}
+
+static inline float ldexpf(float x, int exp)
+{
+ return (float) ldexp(x, exp);
+}
+
+
#else
/* Work-around an extra semi-colon in VS 2005 logf definition */
#ifdef logf