diff options
Diffstat (limited to 'vec_vsx_double2.h')
-rw-r--r-- | vec_vsx_double2.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/vec_vsx_double2.h b/vec_vsx_double2.h index 92c4c4e..f38201b 100644 --- a/vec_vsx_double2.h +++ b/vec_vsx_double2.h @@ -135,6 +135,7 @@ namespace vecmathlib { // ifthen(condition, then-value, else-value) + boolvec_t ifthen(boolvec_t x, boolvec_t y) const; intvec_t ifthen(intvec_t x, intvec_t y) const; // defined after intvec realvec_t ifthen(realvec_t x, realvec_t y) const; // defined after realvec }; @@ -648,16 +649,19 @@ namespace vecmathlib { } inline - boolvec<double,2>::intvec_t boolvec<double,2>::ifthen(intvec_t x, intvec_t y) - const + boolvec<double,2> boolvec<double,2>::ifthen(boolvec_t x, boolvec_t y) const { return vec_sel(y.v, x.v, v); } inline - boolvec<double,2>::realvec_t boolvec<double,2>::ifthen(realvec_t x, - realvec_t y) - const + intvec<double,2> boolvec<double,2>::ifthen(intvec_t x, intvec_t y) const + { + return vec_sel(y.v, x.v, v); + } + + inline + realvec<double,2> boolvec<double,2>::ifthen(realvec_t x, realvec_t y) const { return vec_sel(y.v, x.v, v); } |