diff options
author | Brian Paul <[email protected]> | 2005-08-12 18:56:56 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-08-12 18:56:56 +0000 |
commit | 6fe7a0dc01887e39f028d8d400b98d199744c18f (patch) | |
tree | 44e4cacd39f721c57e820dc8eeef4dbc5b9278cd /src/mesa/main | |
parent | f2876d1ee3b878a07b12ddcb464633a44f7c29e7 (diff) |
added FREXPF() macro (bug 4060)
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/imports.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index 11b0eebf129..c63cc64eb86 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -331,23 +331,28 @@ static INLINE int GET_FLOAT_BITS( float x ) *** CEILF: ceiling of float *** FLOORF: floor of float *** FABSF: absolute value of float + *** LDEXPF: multiply value by an integral power of two + *** FREXPF: extract mantissa and exponent from value ***/ #if defined(XFree86LOADER) && defined(IN_MODULE) #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)) +#define FREXPF(x,y) ((GLfloat) xf86frexp(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) +#define FREXPF(x,y) frexpf(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)) +#define FREXPF(x,y) ((GLfloat) frexp(x,y)) #endif |