Mesa (master): mesa: move signbit() macro to c99_math.h
Brian Paul
brianp at kemper.freedesktop.org
Wed Feb 25 00:26:03 UTC 2015
Module: Mesa
Branch: master
Commit: f847ddb64dfe7d0e84354b30b7551d83fe3463c9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f847ddb64dfe7d0e84354b30b7551d83fe3463c9
Author: Brian Paul <brianp at vmware.com>
Date: Tue Feb 24 15:11:45 2015 -0700
mesa: move signbit() macro to c99_math.h
Reviewed-by: Matt Turner <mattst88 at gmail.com>
---
include/c99_math.h | 8 ++++++++
src/mesa/main/imports.h | 8 --------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/include/c99_math.h b/include/c99_math.h
index 147bcee..9e31d06 100644
--- a/include/c99_math.h
+++ b/include/c99_math.h
@@ -202,4 +202,12 @@ llrintf(float f)
#endif /* C99 */
+/*
+ * signbit() is a macro on Linux. Not available on Windows.
+ */
+#ifndef signbit
+#define signbit(x) ((x) < 0.0f)
+#endif
+
+
#endif /* #define _C99_MATH_H_ */
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h
index a6e4d9e..82b3213 100644
--- a/src/mesa/main/imports.h
+++ b/src/mesa/main/imports.h
@@ -99,14 +99,6 @@ typedef union { GLfloat f; GLint i; GLuint u; } fi_type;
/*@}*/
-/*
- * signbit() is a macro on Linux. Not available on Windows.
- */
-#ifndef signbit
-#define signbit(x) ((x) < 0.0f)
-#endif
-
-
/***
*** LOG2: Log base 2 of float
***/
More information about the mesa-commit
mailing list