summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/imports.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-08-31 08:33:31 -0600
committerBrian Paul <[email protected]>2012-09-01 07:41:26 -0600
commitc8a86f717f8e30204c615d06bcec159410ac06c5 (patch)
tree318b29b6b68d5b1cc8f4d69845e835adf04464fa /src/mesa/main/imports.h
parenta2cf265c8da51e9b7db363a98b0ee80c61b2f79e (diff)
mesa: move IS_NEGATIVE() and DIFFERENT_SIGNS() to macros.h
Diffstat (limited to 'src/mesa/main/imports.h')
-rw-r--r--src/mesa/main/imports.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h
index 65cdf4a52b2..d851ee56a46 100644
--- a/src/mesa/main/imports.h
+++ b/src/mesa/main/imports.h
@@ -225,35 +225,6 @@ static inline int IS_INF_OR_NAN( float x )
/***
- *** IS_NEGATIVE: test if float is negative
- ***/
-#if defined(USE_IEEE)
-static inline int GET_FLOAT_BITS( float x )
-{
- fi_type fi;
- fi.f = x;
- return fi.i;
-}
-#define IS_NEGATIVE(x) (GET_FLOAT_BITS(x) < 0)
-#else
-#define IS_NEGATIVE(x) (x < 0.0F)
-#endif
-
-
-/***
- *** DIFFERENT_SIGNS: test if two floats have opposite signs
- ***/
-#if defined(USE_IEEE)
-#define DIFFERENT_SIGNS(x,y) ((GET_FLOAT_BITS(x) ^ GET_FLOAT_BITS(y)) & (1<<31))
-#else
-/* Could just use (x*y<0) except for the flatshading requirements.
- * Maybe there's a better way?
- */
-#define DIFFERENT_SIGNS(x,y) ((x) * (y) <= 0.0F && (x) - (y) != 0.0F)
-#endif
-
-
-/***
*** CEILF: ceiling of float
*** FLOORF: floor of float
*** FABSF: absolute value of float