util/u_sse: Fix _mm_shuffle_epi8 prototype for clang. 00/6200/1
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 24 Apr 2013 20:58:20 +0000 (21:58 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 25 Apr 2013 10:59:01 +0000 (11:59 +0100)
Clang does not support __artificial__. Instead match precisely what's
in the clang headers.

src/gallium/auxiliary/util/u_sse.h

index 1df6c87..d100c47 100644 (file)
@@ -175,7 +175,12 @@ static INLINE void u_print_ps(const char *name, __m128 r)
  * MSVC will never get in here as its intrinsics support do not rely on
  * compiler command line options.
  */
-static __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__))
+static __inline __m128i
+#ifdef __clang__
+   __attribute__((__always_inline__, __nodebug__))
+#else
+   __attribute__((__gnu_inline__, __always_inline__, __artificial__))
+#endif
 _mm_shuffle_epi8(__m128i a, __m128i mask)
 {
     __m128i result;