summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/macros.h
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-09-21 21:03:14 -0700
committerMatt Turner <[email protected]>2014-09-25 13:57:29 -0700
commit43267a325f4a0c601a7899a7ea4b1927b4cd1f61 (patch)
tree105f2a42895d6f893c2d77f571972c88c672c9d1 /src/mesa/main/macros.h
parent50e2f700932bb846dc36b193e533593d45beac44 (diff)
mesa: Replace IS_NEGATIVE(x) with x < 0.0f.
I only made IS_NEGATIVE(x) use signbit in commit 0f3ba405 in an attempt to fix 54805, but it didn't help. We didn't use signbit on some platforms and instead defined it to x < 0.0f. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/macros.h')
-rw-r--r--src/mesa/main/macros.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h
index 712699f75a8..cd5f2d6f28b 100644
--- a/src/mesa/main/macros.h
+++ b/src/mesa/main/macros.h
@@ -799,13 +799,6 @@ NORMALIZE_3FV(GLfloat v[3])
}
-/** Is float value negative? */
-static inline GLboolean
-IS_NEGATIVE(float x)
-{
- return signbit(x) != 0;
-}
-
/** Test two floats have opposite signs */
static inline GLboolean
DIFFERENT_SIGNS(GLfloat x, GLfloat y)