summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-10-01 08:28:05 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-10-01 08:28:05 +0900
commitcb8a3ba433190b7af254349b00d356b31e813a1a (patch)
treea2c3c5cf994720fbcd5b94c612c8ba344e57808d /src
parentcbfce4175bf72788842bb45fa11c7e19caa8e6a8 (diff)
util: No-op u_sse.h outside PIPE_ARCH_X86/X86_64.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/util/u_sse.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_sse.h b/src/gallium/auxiliary/util/u_sse.h
index 0c8356cd05..68e56f0816 100644
--- a/src/gallium/auxiliary/util/u_sse.h
+++ b/src/gallium/auxiliary/util/u_sse.h
@@ -37,6 +37,10 @@
#ifndef U_SSE_H_
#define U_SSE_H_
+#include "pipe/p_config.h"
+
+#if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)
+
#include <xmmintrin.h>
#include <emmintrin.h>
@@ -66,7 +70,8 @@ _mm_castps_si128(__m128 a)
return u.m128i;
}
-#endif
+#endif /* defined(_MSC_VER) && _MSC_VER < 1500 */
+#endif /* PIPE_ARCH_X86 || PIPE_ARCH_X86_64 */
#endif /* U_SSE_H_ */