Fixed the SIMD implementation of compute_vec4_equal for floats

This commit is contained in:
Keiwan Donyagard 2021-02-24 10:51:20 +01:00
parent 6347f62261
commit a6fcdd0cbc

View File

@ -304,7 +304,7 @@ namespace detail
{
static bool call(vec<4, float, Q> const& v1, vec<4, float, Q> const& v2)
{
return _mm_movemask_ps(_mm_cmpeq_ps(v1.data, v2.data)) != 0;
return _mm_movemask_ps(_mm_cmpneq_ps(v1.data, v2.data)) == 0;
}
};