diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-07-03 14:38:10 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-07-03 14:38:10 -0400 |
commit | 827a2317e9342801ae9010bb97a943f8d9a2b1eb (patch) | |
tree | e3a97e9ce34c6d54cc0879636436c0f9492da81d | |
parent | 5cf17048cebfabe2b79685d734e9c0c4632bf724 (diff) | |
download | vecmathlib-827a2317e9342801ae9010bb97a943f8d9a2b1eb.zip vecmathlib-827a2317e9342801ae9010bb97a943f8d9a2b1eb.tar.gz |
Correct operator!= for AVX instructions
-rw-r--r-- | vec_avx_double4.h | 2 | ||||
-rw-r--r-- | vec_avx_float8.h | 2 |
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 { |