diff options
-rw-r--r-- | vec_avx_double4.h | 2 | ||||
-rw-r--r-- | vec_avx_float8.h | 2 | ||||
-rw-r--r-- | vec_mic_double8.h | 2 | ||||
-rw-r--r-- | vec_sse_double2.h | 2 | ||||
-rw-r--r-- | vec_sse_float4.h | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/vec_avx_double4.h b/vec_avx_double4.h index e4699d8..6632c71 100644 --- a/vec_avx_double4.h +++ b/vec_avx_double4.h @@ -105,7 +105,7 @@ namespace vecmathlib { bool any() const { // return (*this)[0] || (*this)[1] || (*this)[2] || (*this)[3]; - return ! _mm256_testz_pd(v, v); + return ! bool(_mm256_testz_pd(v, v)); } diff --git a/vec_avx_float8.h b/vec_avx_float8.h index ea02051..3ff6197 100644 --- a/vec_avx_float8.h +++ b/vec_avx_float8.h @@ -113,7 +113,7 @@ namespace vecmathlib { // return // (*this)[0] || (*this)[1] || (*this)[2] || (*this)[3] || // (*this)[4] || (*this)[5] || (*this)[6] || (*this)[7]; - return ! _mm256_testz_ps(v, v); + return ! bool(_mm256_testz_ps(v, v)); } diff --git a/vec_mic_double8.h b/vec_mic_double8.h index b77562b..b043d8c 100644 --- a/vec_mic_double8.h +++ b/vec_mic_double8.h @@ -97,7 +97,7 @@ namespace vecmathlib { boolvec operator!=(boolvec x) const { return _mm512_kxor(v, x.v); } bool all() const { return _mm512_kortestc(v, v); } - bool any() const { return ! _mm512_kortestz(v, v); } + bool any() const { return ! bool(_mm512_kortestz(v, v)); } diff --git a/vec_sse_double2.h b/vec_sse_double2.h index 0d847aa..0660bd9 100644 --- a/vec_sse_double2.h +++ b/vec_sse_double2.h @@ -117,7 +117,7 @@ namespace vecmathlib { bool any() const { #if defined __AVX__ - return ! _mm_testz_pd(v, v); + return ! bool(_mm_testz_pd(v, v)); #else return (*this)[0] || (*this)[1]; #endif diff --git a/vec_sse_float4.h b/vec_sse_float4.h index 0f42d7b..796e795 100644 --- a/vec_sse_float4.h +++ b/vec_sse_float4.h @@ -124,7 +124,7 @@ namespace vecmathlib { { // return (*this)[0] || (*this)[1] || (*this)[2] || (*this)[3]; #if defined __AVX__ - return ! _mm_testz_ps(v, v); + return ! bool(_mm_testz_ps(v, v)); #else boolvec x = *this; x = x || _mm_shuffle_ps(x.v, x.v, _MM_SHUFFLE(2,3,0,1)); |