mirror of
https://github.com/g-truc/glm.git
synced 2024-11-12 21:31:47 +00:00
Merge pull request #1060 from imgly/fix/simd-vec4-compare
Fixed the SIMD (SSE) implementation of compute_vec4_equal for floats #1060
This commit is contained in:
commit
ace16e4778
@ -304,7 +304,7 @@ namespace detail
|
|||||||
{
|
{
|
||||||
static bool call(vec<4, float, Q> const& v1, vec<4, float, Q> const& v2)
|
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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user