diff options
author | Brian Paul <[email protected]> | 2015-02-24 09:01:51 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2015-02-24 14:44:19 -0700 |
commit | 79b480ccc069b92d4614ed7f61d810bdc816cb7c (patch) | |
tree | 775d9eba1c3371b3f134f686b7719cc9afde36cb /include | |
parent | e25f7772cacef8673318a7bfb33b151c5bc5d94c (diff) |
mesa: replace LOGF, EXPF with logf, expf
Reviewed-by: Matt Turner <[email protected]>
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 */ |