diff options
author | Keith Whitwell <[email protected]> | 2005-07-13 17:47:40 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2005-07-13 17:47:40 +0000 |
commit | 3f7cb794ea154ddcc7b1a8d792eae658d077db81 (patch) | |
tree | d62a1d224848f86be4dde7c6533323e4276f5ee2 /src/mesa | |
parent | c472dcdac0b95cf48a6c8b2f355e14e063f72650 (diff) |
Add a LDEXPF wrapper macro.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/imports.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index 7bc51aad704..11b0eebf129 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -336,15 +336,18 @@ static INLINE int GET_FLOAT_BITS( float x ) #define CEILF(x) ((GLfloat) xf86ceil(x)) #define FLOORF(x) ((GLfloat) xf86floor(x)) #define FABSF(x) ((GLfloat) xf86fabs(x)) +#define LDEXPF(x,y) ((GLfloat) xf86ldexp(x,y)) #elif defined(__gnu_linux__) /* C99 functions */ #define CEILF(x) ceilf(x) #define FLOORF(x) floorf(x) #define FABSF(x) fabsf(x) +#define LDEXPF(x,y) ldexpf(x,y) #else #define CEILF(x) ((GLfloat) ceil(x)) #define FLOORF(x) ((GLfloat) floor(x)) #define FABSF(x) ((GLfloat) fabs(x)) +#define LDEXPF(x,y) ((GLfloat) ldexp(x,y)) #endif |