From f0c296773d5c5a9c3d933a51ce6c5580a7e2c4e0 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Wed, 24 Apr 2013 21:58:20 +0100 Subject: util/u_sse: Fix _mm_shuffle_epi8 prototype for clang. 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(-) (limited to 'src/gallium') diff --git a/src/gallium/auxiliary/util/u_sse.h b/src/gallium/auxiliary/util/u_sse.h index 1df6c872677..d100c47068d 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; -- cgit v1.2.3