v128: A few optimizations (#8432)

This commit is contained in:
Eladash 2020-06-15 17:24:04 +03:00 committed by GitHub
parent 5777a1d426
commit 731d4330fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View file

@ -85,7 +85,7 @@ static FORCE_INLINE bool cmp_rdata(const decltype(spu_thread::rdata)& lhs, const
const v128 c = (lhs[4] ^ rhs[4]) | (lhs[5] ^ rhs[5]);
const v128 d = (lhs[6] ^ rhs[6]) | (lhs[7] ^ rhs[7]);
const v128 r = (a | b) | (c | d);
return !(r._u64[0] | r._u64[1]);
return r == v128{};
}
static FORCE_INLINE void mov_rdata_avx(__m256i* dst, const __m256i* src)