瀏覽代碼

util/u_sse: Fix _mm_shuffle_epi8 prototype for clang.

Clang does not support __artificial__. Instead match precisely what's
in the clang headers.
tags/mesa-9.2-rc1
José Fonseca 12 年之前
父節點
當前提交
f0c296773d
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6
    1
      src/gallium/auxiliary/util/u_sse.h

+ 6
- 1
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;

Loading…
取消
儲存