diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/c99_math.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/c99_math.h b/include/c99_math.h index bb4bbd1a07f..147bceed96d 100644 --- a/include/c99_math.h +++ b/include/c99_math.h @@ -92,6 +92,16 @@ static inline float ldexpf(float x, int exp) return (float) ldexp(x, exp); } +static inline float logf(float x) +{ + return (float) log(x); +} + +static inline float expf(float x) +{ + return (float) exp(x); +} + #else /* Work-around an extra semi-colon in VS 2005 logf definition */ |