From 612e46614ad1e9b849916a085e69308f5b813e83 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Sat, 4 Jun 2016 13:16:06 -0700 Subject: [PATCH] fix (unused) SSE operator btMatrix3x3 ==, thanks to yyzone for the report/fix. fixes 552 --- src/LinearMath/btMatrix3x3.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/LinearMath/btMatrix3x3.h b/src/LinearMath/btMatrix3x3.h index 41dea6948..963c5db97 100644 --- a/src/LinearMath/btMatrix3x3.h +++ b/src/LinearMath/btMatrix3x3.h @@ -1329,7 +1329,9 @@ SIMD_FORCE_INLINE bool operator==(const btMatrix3x3& m1, const btMatrix3x3& m2) c0 = _mm_and_ps(c0, c1); c0 = _mm_and_ps(c0, c2); - return (0x7 == _mm_movemask_ps((__m128)c0)); + int m = _mm_movemask_ps((__m128)c0); + return (0x7 == (m & 0x7)); + #else return ( m1[0][0] == m2[0][0] && m1[1][0] == m2[1][0] && m1[2][0] == m2[2][0] &&