diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-08-17 12:35:09 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-08-17 12:35:09 -0400 |
commit | 7fc150c6ad3144c055231bb05e3cbed41b5843dd (patch) | |
tree | 0d9ee7b388dc8fd07aebf37cd0da09dbea45e9a8 /vec_qpx_double4.h | |
parent | 00d17b5c33fd4454767da322397f2193ecbd6d03 (diff) | |
download | vecmathlib-7fc150c6ad3144c055231bb05e3cbed41b5843dd.zip vecmathlib-7fc150c6ad3144c055231bb05e3cbed41b5843dd.tar.gz |
QPX: Correct type errors in any/all
Diffstat (limited to 'vec_qpx_double4.h')
-rw-r--r-- | vec_qpx_double4.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vec_qpx_double4.h b/vec_qpx_double4.h index 42973df..6351f21 100644 --- a/vec_qpx_double4.h +++ b/vec_qpx_double4.h @@ -103,17 +103,17 @@ namespace vecmathlib { bool all() const { // return (*this)[0] && (*this)[1] && (*this)[2] && (*this)[3]; - realvec_t x0123 = *this; - realvec_t x1032 = vec_perm(x0123, x0123, vec_gpci(01032)); - realvec_t y0022 = x0123 && x1032; + boolvec x0123 = *this; + boolvec x1032 = vec_perm(x0123, x0123, vec_gpci(01032)); + boolvec y0022 = x0123 && x1032; return y0022[0] && y0022[2]; } bool any() const { // return (*this)[0] || (*this)[1] || (*this)[2] || (*this)[3]; - realvec_t x0123 = *this; - realvec_t x1032 = vec_perm(x0123, x0123, vec_gpci(01032)); - realvec_t y0022 = x0123 || x1032; + boolvec x0123 = *this; + boolvec x1032 = vec_perm(x0123, x0123, vec_gpci(01032)); + boolvec y0022 = x0123 || x1032; return y0022[0] || y0022[2]; } |