summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vec_avx_double4.h2
-rw-r--r--vec_avx_float8.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/vec_avx_double4.h b/vec_avx_double4.h
index 3d3225c..af0c328 100644
--- a/vec_avx_double4.h
+++ b/vec_avx_double4.h
@@ -520,7 +520,7 @@ namespace vecmathlib {
}
boolvec_t operator!=(realvec const& x) const
{
- return _mm256_cmp_pd(v, x.v, _CMP_NEQ_OQ);
+ return _mm256_cmp_pd(v, x.v, _CMP_NEQ_UQ); // Note: _UQ here
}
boolvec_t operator<(realvec const& x) const
{
diff --git a/vec_avx_float8.h b/vec_avx_float8.h
index fe5273f..82856a2 100644
--- a/vec_avx_float8.h
+++ b/vec_avx_float8.h
@@ -512,7 +512,7 @@ namespace vecmathlib {
}
boolvec_t operator!=(realvec const& x) const
{
- return _mm256_cmp_ps(v, x.v, _CMP_NEQ_OQ);
+ return _mm256_cmp_ps(v, x.v, _CMP_NEQ_UQ); // Note: _UQ here
}
boolvec_t operator<(realvec const& x) const
{
OpenPOWER on IntegriCloud