Mesa (master): mesa: remove unused exp2f, log2f, truncf wrappers

Brian Paul brianp at kemper.freedesktop.org
Tue Feb 24 21:49:46 UTC 2015


Module: Mesa
Branch: master
Commit: bad154e677fb2ee3b2fb976ac3843dad08c87ea2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bad154e677fb2ee3b2fb976ac3843dad08c87ea2

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Feb 24 09:24:27 2015 -0700

mesa: remove unused exp2f, log2f, truncf wrappers

Reviewed-by: Matt Turner <mattst88 at gmail.com>

---

 src/mesa/main/imports.h |   10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h
index 105c711..6747611 100644
--- a/src/mesa/main/imports.h
+++ b/src/mesa/main/imports.h
@@ -99,25 +99,15 @@ typedef union { GLfloat f; GLint i; GLuint u; } fi_type;
    && (!defined(_MSC_VER) || (_MSC_VER < 1400))
 #define ceilf(f) ((float) ceil(f))
 #define expf(f) ((float) exp(f))
-#define exp2f(f) ((float) exp2(f))
 #define floorf(f) ((float) floor(f))
 #define logf(f) ((float) log(f))
 
-#ifdef ANDROID
-#define log2f(f) (logf(f) * (float) (1.0 / M_LN2))
-#else
-#define log2f(f) ((float) log2(f))
-#endif
-
 #define powf(x,y) ((float) pow(x,y))
 #define sqrtf(f) ((float) sqrt(f))
 #endif
 
 #if defined(_MSC_VER)
 #if _MSC_VER < 1800  /* Not req'd on VS2013 and above */
-static inline float truncf(float x) { return x < 0.0f ? ceilf(x) : floorf(x); }
-static inline float exp2f(float x) { return powf(2.0f, x); }
-static inline float log2f(float x) { return logf(x) * 1.442695041f; }
 static inline int isblank(int ch) { return ch == ' ' || ch == '\t'; }
 #define strtoll(p, e, b) _strtoi64(p, e, b)
 #endif /* _MSC_VER < 1800 */




More information about the mesa-commit mailing list