mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
We need an immediate so use intrinsic directly
This commit is contained in:
parent
d36cc9ea4c
commit
ca2343f98e
@ -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__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user