diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-08-19 11:58:46 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-08-19 11:58:46 -0400 |
commit | c25c5b7f9b5cc8bccfd81a22b27c67c7726e7f32 (patch) | |
tree | ac6bad2c702f61a768dcecf8e3a1c1533eeb2441 /vec_sse_float4.h | |
parent | 990bf1b7406316685351097cbb609f406e9828f8 (diff) | |
download | vecmathlib-c25c5b7f9b5cc8bccfd81a22b27c67c7726e7f32.zip vecmathlib-c25c5b7f9b5cc8bccfd81a22b27c67c7726e7f32.tar.gz |
Add potential optimization for SSE/AVX all/any functions
Diffstat (limited to 'vec_sse_float4.h')
-rw-r--r-- | vec_sse_float4.h | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |