We need an immediate so use intrinsic directly

This commit is contained in:
Matthew Barr 2016-05-09 10:47:15 +10:00
parent d36cc9ea4c
commit ca2343f98e

View File

@ -98,16 +98,14 @@ static really_inline
m256 vpshufb(m256 a, m256 b) { m256 vpshufb(m256 a, m256 b) {
return _mm256_shuffle_epi8(a, b); return _mm256_shuffle_epi8(a, b);
} }
#if defined(USE_GCC_COMPOUND_STATEMENTS) #if defined(USE_GCC_COMPOUND_STATEMENTS)
#define vpalignr(r, l, offset) ({ \ #define vpalignr(r, l, offset) ({ \
m256 res = _mm256_alignr_epi8(r, l, offset); \ m256 res = _mm256_alignr_epi8(r, l, offset); \
res; \ res; \
}) })
#else #else
static really_inline #define vpalignr(r, l, offset) _mm256_alignr_epi8(r, l, offset)
m256 vpalignr(m256 r, m256 l, const int offset) {
return _mm256_alignr_epi8(r, l, offset);
}
#endif #endif
#else // not __AVX2__ #else // not __AVX2__