diff options
author | Brian Paul <[email protected]> | 2015-02-24 08:57:17 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2015-02-24 14:44:19 -0700 |
commit | e25f7772cacef8673318a7bfb33b151c5bc5d94c (patch) | |
tree | 468fa89973099522ae546d6aab626c92de495744 /include | |
parent | e6eddbb96a9a690a865df8b0b9cfa2f644824b51 (diff) |
mesa: replace FREXPF, LDEXPF with frexpf, ldexpf
Start getting rid of some imports.h macros. Use the c99 functions instead.
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'include')
-rw-r--r-- | include/c99_math.h | 11 |
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 |