git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115301 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-10-01 06:58:49 +00:00
Родитель 8a72034e41
Коммит fcb0b2587d
1 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@ -778,7 +778,7 @@ _mm_xor_si128(__m128i a, __m128i b)
} }
#define _mm_slli_si128(VEC, IMM) \ #define _mm_slli_si128(VEC, IMM) \
((__m128i)__builtin_ia32_pslldqi128(VEC, (IMM)*8)) ((__m128i)__builtin_ia32_pslldqi128((__m128i)(VEC), (IMM)*8))
static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) static __inline__ __m128i __attribute__((__always_inline__, __nodebug__))
_mm_slli_epi16(__m128i a, int count) _mm_slli_epi16(__m128i a, int count)
@ -840,11 +840,9 @@ _mm_sra_epi32(__m128i a, __m128i count)
return (__m128i)__builtin_ia32_psrad128((__v4si)a, (__v4si)count); return (__m128i)__builtin_ia32_psrad128((__v4si)a, (__v4si)count);
} }
static __inline__ __m128i __attribute__((__always_inline__, __nodebug__))
_mm_srli_si128(__m128i a, int imm) #define _mm_srli_si128(VEC, IMM) \
{ ((__m128i)__builtin_ia32_psrldqi128((__m128i)(VEC), (IMM)*8))
return __builtin_ia32_psrldqi128(a, imm * 8);
}
static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) static __inline__ __m128i __attribute__((__always_inline__, __nodebug__))
_mm_srli_epi16(__m128i a, int count) _mm_srli_epi16(__m128i a, int count)