From a6fcdd0cbcd654c099dc2209612c535ca87ee3d8 Mon Sep 17 00:00:00 2001 From: Keiwan Donyagard Date: Wed, 24 Feb 2021 10:51:20 +0100 Subject: [PATCH] Fixed the SIMD implementation of compute_vec4_equal for floats --- glm/detail/type_vec4_simd.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/detail/type_vec4_simd.inl b/glm/detail/type_vec4_simd.inl index 29559b53..149c413e 100644 --- a/glm/detail/type_vec4_simd.inl +++ b/glm/detail/type_vec4_simd.inl @@ -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; } };