util: No-op u_sse.h outside PIPE_ARCH_X86/X86_64.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Tue, 30 Sep 2008 23:28:05 +0000 (08:28 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Tue, 30 Sep 2008 23:28:05 +0000 (08:28 +0900)
src/gallium/auxiliary/util/u_sse.h

index 0c8356cd05707dcfb71ff5d351499adc65c726c8..68e56f081650d357e4800282dafcc3ac396ba8d6 100644 (file)
 #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_ */