mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
remove only use of cmpmsk8 and unused cmpmsk16
This commit is contained in:
parent
0722b5db5b
commit
9c915cc936
@ -91,7 +91,7 @@ static really_inline
|
||||
u32 packedExtract128(m128 s, const m128 permute, const m128 compare) {
|
||||
m128 shuffled = pshufb(s, permute);
|
||||
m128 compared = and128(shuffled, compare);
|
||||
u16 rv = ~cmpmsk8(compared, shuffled);
|
||||
u16 rv = ~movemask128(eq128(compared, shuffled));
|
||||
return (u32)rv;
|
||||
}
|
||||
|
||||
|
@ -152,12 +152,6 @@ static really_inline u32 diffrich64_128(m128 a, m128 b) {
|
||||
// forward decl
|
||||
static really_inline m128 xor128(m128 a, m128 b);
|
||||
|
||||
/** \brief Return msb mask of packet 8 bit compare equal */
|
||||
static really_inline unsigned short cmpmsk8(m128 a, m128 b) {
|
||||
m128 tmp = _mm_cmpeq_epi8(a, b);
|
||||
return _mm_movemask_epi8(tmp);
|
||||
}
|
||||
|
||||
#define shift2x64(a, b) _mm_slli_epi64((a), (b))
|
||||
#define rshift2x64(a, b) _mm_srli_epi64((a), (b))
|
||||
#define eq128(a, b) _mm_cmpeq_epi8((a), (b))
|
||||
@ -355,10 +349,6 @@ m256 set32x8(u32 in) {
|
||||
#define eq256(a, b) _mm256_cmpeq_epi8((a), (b))
|
||||
#define movemask256(a) ((u32)_mm256_movemask_epi8((a)))
|
||||
|
||||
static really_inline u32 cmpmsk16(m256 a, m256 b) {
|
||||
m256 tmp = _mm256_cmpeq_epi8(a, b);
|
||||
return _mm256_movemask_epi8(tmp);
|
||||
}
|
||||
static really_inline
|
||||
m256 set2x128(m128 a) {
|
||||
return _mm256_broadcastsi128_si256(a);
|
||||
|
Loading…
x
Reference in New Issue
Block a user