[Mesa-dev] [PATCH 2/3] util/u_sse: Fix _mm_shuffle_epi8 prototype for clang.

jfonseca at vmware.com jfonseca at vmware.com
Wed Apr 24 14:14:34 PDT 2013


From: José Fonseca <jfonseca at vmware.com>

Clang does not support __artificial__. Instead match precisely what's
in the clang headers.
---
 src/gallium/auxiliary/util/u_sse.h |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/util/u_sse.h b/src/gallium/auxiliary/util/u_sse.h
index 1df6c87..d100c47 100644
--- a/src/gallium/auxiliary/util/u_sse.h
+++ b/src/gallium/auxiliary/util/u_sse.h
@@ -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;
-- 
1.7.10.4



More information about the mesa-dev mailing list