rename vpshufb to pshufb_m256

This commit is contained in:
Matthew Barr
2017-05-05 09:59:29 +10:00
parent eabe408e2b
commit a295c96198
8 changed files with 63 additions and 60 deletions

View File

@@ -70,7 +70,8 @@ masked_move256_len(const u8 *buf, const u32 len) {
u32 end = unaligned_load_u32(buf + len - 4);
m256 preshufend = _mm256_broadcastq_epi64(_mm_cvtsi32_si128(end));
m256 v = _mm256_maskload_epi32((const int *)buf, lmask);
m256 shufend = vpshufb(preshufend, loadu256(&mm_shuffle_end[len - 4]));
m256 shufend = pshufb_m256(preshufend,
loadu256(&mm_shuffle_end[len - 4]));
m256 target = or256(v, shufend);
return target;

View File

@@ -279,7 +279,7 @@ m128 pshufb(m128 a, m128 b) {
}
static really_inline
m256 vpshufb(m256 a, m256 b) {
m256 pshufb_m256(m256 a, m256 b) {
#if defined(HAVE_AVX2)
return _mm256_shuffle_epi8(a, b);
#else