From: Keith Whitwell Date: Wed, 13 Jul 2005 17:47:40 +0000 (+0000) Subject: Add a LDEXPF wrapper macro. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3f7cb794ea154ddcc7b1a8d792eae658d077db81;p=mesa.git Add a LDEXPF wrapper macro. --- 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