From d4b78995d8ef3364dcc1437089bc967f888ba67d Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Sat, 6 Jul 2013 17:19:40 -0400 Subject: Do not require C++11 any more Do not use any C++11-specific features, such as the auto keyword. Use C99 math functions when C++11 is not available. --- vec_vsx_double2.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'vec_vsx_double2.h') diff --git a/vec_vsx_double2.h b/vec_vsx_double2.h index e0b37ec..026ac4b 100644 --- a/vec_vsx_double2.h +++ b/vec_vsx_double2.h @@ -637,26 +637,27 @@ namespace vecmathlib { // boolvec definitions - inline - auto boolvec::as_int() const -> intvec_t + inline boolvec::intvec_t boolvec::as_int() const { return (__vector long long) v; } - inline - auto boolvec::convert_int() const -> intvec_t + inline boolvec::intvec_t boolvec::convert_int() const { return -(__vector long long)v; } inline - auto boolvec::ifthen(intvec_t x, intvec_t y) const -> intvec_t + boolvec::intvec_t boolvec::ifthen(intvec_t x, intvec_t y) + const { return vec_sel(y.v, x.v, v); } inline - auto boolvec::ifthen(realvec_t x, realvec_t y) const -> realvec_t + boolvec::realvec_t boolvec::ifthen(realvec_t x, + realvec_t y) + const { return vec_sel(y.v, x.v, v); } @@ -665,12 +666,12 @@ namespace vecmathlib { // intvec definitions - inline auto intvec::as_float() const -> realvec_t + inline intvec::realvec_t intvec::as_float() const { return (__vector double)v; } - inline auto intvec::convert_float() const -> realvec_t + inline intvec::realvec_t intvec::convert_float() const { // return vec_ctd(v, 0); return MF::vml_convert_float(*this); -- cgit v1.1