diff options
author | Brian Paul <[email protected]> | 2013-11-04 07:33:41 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-11-04 12:23:09 -0700 |
commit | 4e0ed59959ad38b9dd469d9924e6794c8d21abcf (patch) | |
tree | 0f080ecd6e45136d68b20a215e3812a96dd4ac2e /src/mesa/main/compiler.h | |
parent | 2a1f74e7d93c8c1e7fa46784ea0bdb6c7bd47100 (diff) |
mesa: remove Watcom C support
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/compiler.h')
-rw-r--r-- | src/mesa/main/compiler.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h index 2490ee392c7..61ce5dbdc78 100644 --- a/src/mesa/main/compiler.h +++ b/src/mesa/main/compiler.h @@ -84,8 +84,6 @@ extern "C" { */ #if defined(_MSC_VER) # define finite _finite -#elif defined(__WATCOMC__) -# define finite _finite #endif @@ -107,9 +105,6 @@ extern "C" { # endif # endif #endif -#if defined(__WATCOMC__) -# pragma disable_message(201) /* Disable unreachable code warnings */ -#endif @@ -381,36 +376,6 @@ do { \ __asm__ ( "fnclex ; fldcw %0" : : "m" (*&(x)) ); \ } while (0) -#elif defined(__WATCOMC__) && defined(__386__) -#define DEFAULT_X86_FPU 0x037f /* See GCC comments above */ -#define FAST_X86_FPU 0x003f /* See GCC comments above */ -void _watcom_start_fast_math(unsigned short *x,unsigned short *mask); -#pragma aux _watcom_start_fast_math = \ - "fnstcw word ptr [eax]" \ - "fldcw word ptr [ecx]" \ - parm [eax] [ecx] \ - modify exact []; -void _watcom_end_fast_math(unsigned short *x); -#pragma aux _watcom_end_fast_math = \ - "fnclex" \ - "fldcw word ptr [eax]" \ - parm [eax] \ - modify exact []; -#if defined(NO_FAST_MATH) -#define START_FAST_MATH(x) \ -do { \ - static GLushort mask = DEFAULT_X86_FPU; \ - _watcom_start_fast_math(&x,&mask); \ -} while (0) -#else -#define START_FAST_MATH(x) \ -do { \ - static GLushort mask = FAST_X86_FPU; \ - _watcom_start_fast_math(&x,&mask); \ -} while (0) -#endif -#define END_FAST_MATH(x) _watcom_end_fast_math(&x) - #elif defined(_MSC_VER) && defined(_M_IX86) #define DEFAULT_X86_FPU 0x037f /* See GCC comments above */ #define FAST_X86_FPU 0x003f /* See GCC comments above */ |