diff options
author | José Fonseca <[email protected]> | 2010-09-05 10:40:38 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-09-05 10:40:38 +0100 |
commit | 7d45bf87622f2052493481438b4d029f9ff491b5 (patch) | |
tree | 718800c0e7028a9ec90e632438651f032200201d /src/gallium/drivers | |
parent | 1c009f970edaa4893c7c99a56da0e4425d01c4d8 (diff) |
llvmpipe: Remove some broken MinGW hacks in the sin/cos reference code.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/llvmpipe/sse_mathfun.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/gallium/drivers/llvmpipe/sse_mathfun.h b/src/gallium/drivers/llvmpipe/sse_mathfun.h index 8ac2064b7bb..0077f34b5c8 100644 --- a/src/gallium/drivers/llvmpipe/sse_mathfun.h +++ b/src/gallium/drivers/llvmpipe/sse_mathfun.h @@ -94,55 +94,6 @@ v4sf sin_ps(v4sf x); v4sf cos_ps(v4sf x); void sincos_ps(v4sf x, v4sf *s, v4sf *c); -#if defined (__MINGW32__) - -/* the ugly part below: many versions of gcc used to be completely buggy with respect to some intrinsics - The movehl_ps is fixed in mingw 3.4.5, but I found out that all the _mm_cmp* intrinsics were completely - broken on my mingw gcc 3.4.5 ... - - Note that the bug on _mm_cmp* does occur only at -O0 optimization level -*/ - -inline __m128 my_movehl_ps(__m128 a, const __m128 b) { - asm ( - "movhlps %2,%0\n\t" - : "=x" (a) - : "0" (a), "x"(b) - ); - return a; } -#warning "redefined _mm_movehl_ps (see gcc bug 21179)" -#define _mm_movehl_ps my_movehl_ps - -inline __m128 my_cmplt_ps(__m128 a, const __m128 b) { - asm ( - "cmpltps %2,%0\n\t" - : "=x" (a) - : "0" (a), "x"(b) - ); - return a; - } -inline __m128 my_cmpgt_ps(__m128 a, const __m128 b) { - asm ( - "cmpnleps %2,%0\n\t" - : "=x" (a) - : "0" (a), "x"(b) - ); - return a; -} -inline __m128 my_cmpeq_ps(__m128 a, const __m128 b) { - asm ( - "cmpeqps %2,%0\n\t" - : "=x" (a) - : "0" (a), "x"(b) - ); - return a; -} -#warning "redefined _mm_cmpxx_ps functions..." -#define _mm_cmplt_ps my_cmplt_ps -#define _mm_cmpgt_ps my_cmpgt_ps -#define _mm_cmpeq_ps my_cmpeq_ps -#endif - #ifndef USE_SSE2 typedef union xmm_mm_union { __m128 xmm; |