diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-08-17 12:41:28 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-08-17 12:41:28 -0400 |
commit | 38b98bc92535baea05fc9e63ee80243d9a7ee34b (patch) | |
tree | 6e8c23dc72f6d4df9e354e4b5598ca0e813b5e64 | |
parent | 3806738faa5f9a851ff536fb7876ef9a63c09b66 (diff) | |
download | vecmathlib-38b98bc92535baea05fc9e63ee80243d9a7ee34b.zip vecmathlib-38b98bc92535baea05fc9e63ee80243d9a7ee34b.tar.gz |
QPX: Correct some type errors
-rw-r--r-- | vec_qpx_double4.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/vec_qpx_double4.h b/vec_qpx_double4.h index 489c4e2..3f93852 100644 --- a/vec_qpx_double4.h +++ b/vec_qpx_double4.h @@ -684,19 +684,22 @@ namespace vecmathlib { } inline - boolvec<double,4> boolvec<double,4>::ifthen(boolvec_t x, boolvec_t y) const + boolvec<double,4> + boolvec<double,4>::ifthen(const boolvec_t& x, const boolvec_t& y) const { return ifthen(x.as_int(), y.as_int()).as_bool(); } inline - intvec<double,4> boolvec<double,4>::ifthen(intvec_t x, intvec_t y) const + intvec<double,4> + boolvec<double,4>::ifthen(const intvec_t& x, const intvec_t& y) const { return ifthen(x.as_float(), y.as_float()).as_int(); } inline - realvec<double,4> boolvec<double,4>::ifthen(realvec_t x, realvec_t y) const + realvec<double,4> + boolvec<double,4>::ifthen(const realvec_t& x, const realvec_t& y) const { return vec_sel(y.v, x.v, v); } |