PPU interpreters: Implement AltiVec NaNs precedence and data preservation

This commit is contained in:
Eladash 2020-05-14 15:21:15 +03:00 committed by Ivan
parent 2591d99db1
commit 201d54ee08
2 changed files with 69 additions and 33 deletions

View file

@ -312,6 +312,16 @@ union alignas(16) v128
return fromV(_mm_cmpeq_epi32(left.vi, right.vi));
}
static inline v128 eq32f(const v128& left, const v128& right)
{
return fromF(_mm_cmpeq_ps(left.vf, right.vf));
}
static inline v128 eq64f(const v128& left, const v128& right)
{
return fromD(_mm_cmpeq_pd(left.vd, right.vd));
}
bool operator==(const v128& right) const
{
return _u64[0] == right._u64[0] && _u64[1] == right._u64[1];