From 50d5fc192b1558de048447498c876ff28a3433e6 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Wed, 6 Aug 2014 16:13:26 -0700 Subject: mesa: Drop USE_IEEE define. I think OpenVMS was the only platform that Mesa ran on that used a non-IEEE representation for floats. We removed OpenVMS support a while back, and this should alleviate the need to continue updating the this-platform-uses-IEEE list. The one bit of this patch that needs review is the IS_INF_OR_NAN, because I'm not sure if MSVC supports isfinite. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82268 Reviewed-by: Brian Paul --- src/mesa/program/prog_execute.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/mesa/program/prog_execute.c') diff --git a/src/mesa/program/prog_execute.c b/src/mesa/program/prog_execute.c index 115525eba57..fcc9ed518ee 100644 --- a/src/mesa/program/prog_execute.c +++ b/src/mesa/program/prog_execute.c @@ -52,7 +52,6 @@ /** * Set x to positive or negative infinity. */ -#if defined(USE_IEEE) || defined(_WIN32) #define SET_POS_INFINITY(x) \ do { \ fi_type fi; \ @@ -65,10 +64,6 @@ fi.i = 0xFF800000; \ x = fi.f; \ } while (0) -#else -#define SET_POS_INFINITY(x) x = (GLfloat) HUGE_VAL -#define SET_NEG_INFINITY(x) x = (GLfloat) -HUGE_VAL -#endif #define SET_FLOAT_BITS(x, bits) ((fi_type *) (void *) &(x))->i = bits -- cgit v1.2.3