Mesa (master): mesa: remove sqrtf macro

Brian Paul brianp at kemper.freedesktop.org
Wed Feb 25 00:26:03 UTC 2015


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

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Feb 24 15:03:44 2015 -0700

mesa: remove sqrtf macro

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

---

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

diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h
index df6a3fe..7fb9381 100644
--- a/src/mesa/main/imports.h
+++ b/src/mesa/main/imports.h
@@ -90,17 +90,6 @@ typedef union { GLfloat f; GLint i; GLuint u; } fi_type;
 #define DEG2RAD (M_PI/180.0)
 
 
-/**
- * \name Work-arounds for platforms that lack C99 math functions
- */
-/*@{*/
-#if (!defined(_XOPEN_SOURCE) || (_XOPEN_SOURCE < 600)) && !defined(_ISOC99_SOURCE) \
-   && (!defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)) \
-   && (!defined(_MSC_VER) || (_MSC_VER < 1400))
-
-#define sqrtf(f) ((float) sqrt(f))
-#endif
-
 #if defined(_MSC_VER)
 #if _MSC_VER < 1800  /* Not req'd on VS2013 and above */
 static inline int isblank(int ch) { return ch == ' ' || ch == '\t'; }




More information about the mesa-commit mailing list