mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-05-07 13:37:46 +00:00
facepalm: _mm_andnot is ~A&B not A&~B as the name would suggest
This commit is contained in:
parent
fa6d03d557
commit
a64bb4a0ec
1 changed files with 2 additions and 1 deletions
|
|
@ -348,7 +348,8 @@ public:
|
|||
else if (sanitize)
|
||||
{
|
||||
//Lower NaNs to 0
|
||||
_mm_stream_si128((__m128i*)dst, (__m128i&)_mm_andnot_ps((__m128&)shuffled_vector, _mm_cmpunord_ps((__m128&)shuffled_vector, _mm_set1_ps(1.f))));
|
||||
const auto mask = _mm_cmpunord_ps((__m128&)shuffled_vector, _mm_set1_ps(1.f));
|
||||
_mm_stream_si128((__m128i*)dst, (__m128i&)_mm_andnot_ps(mask, (__m128&)shuffled_vector));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue