mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
We need an immediate so use intrinsic directly
This commit is contained in:
@@ -98,16 +98,14 @@ static really_inline
|
||||
m256 vpshufb(m256 a, m256 b) {
|
||||
return _mm256_shuffle_epi8(a, b);
|
||||
}
|
||||
|
||||
#if defined(USE_GCC_COMPOUND_STATEMENTS)
|
||||
#define vpalignr(r, l, offset) ({ \
|
||||
m256 res = _mm256_alignr_epi8(r, l, offset); \
|
||||
res; \
|
||||
})
|
||||
#else
|
||||
static really_inline
|
||||
m256 vpalignr(m256 r, m256 l, const int offset) {
|
||||
return _mm256_alignr_epi8(r, l, offset);
|
||||
}
|
||||
#define vpalignr(r, l, offset) _mm256_alignr_epi8(r, l, offset)
|
||||
#endif
|
||||
|
||||
#else // not __AVX2__
|
||||
|
Reference in New Issue
Block a user