Przeglądaj źródła

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 lat temu
rodzic
commit
f0c296773d
1 zmienionych plików z 6 dodań i 1 usunięć
  1. 6
    1
      src/gallium/auxiliary/util/u_sse.h

+ 6
- 1
src/gallium/auxiliary/util/u_sse.h Wyświetl plik

@@ -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;

Ładowanie…
Anuluj
Zapisz