aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2005-07-13 17:47:40 +0000
committerKeith Whitwell <[email protected]>2005-07-13 17:47:40 +0000
commit3f7cb794ea154ddcc7b1a8d792eae658d077db81 (patch)
treed62a1d224848f86be4dde7c6533323e4276f5ee2 /src/mesa
parentc472dcdac0b95cf48a6c8b2f355e14e063f72650 (diff)
Add a LDEXPF wrapper macro.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/imports.h3
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