From 46a79cb4547463b1f4b6269507954c68bd402d6b Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Mon, 2 Sep 2013 22:30:48 -0400 Subject: Use nicer type names in vec_pseudo --- vec_pseudo.h | 258 +++++++++++++++++++++++++++++------------------------------ 1 file changed, 129 insertions(+), 129 deletions(-) (limited to 'vec_pseudo.h') diff --git a/vec_pseudo.h b/vec_pseudo.h index e2ba9f0..c553fa3 100644 --- a/vec_pseudo.h +++ b/vec_pseudo.h @@ -63,7 +63,7 @@ namespace vecmathlib { boolpseudovec(bool const* as) { for (int d=0; d>=(int_t n) + intvec_t& operator>>=(int_t n) { for (int d=0; d>= n; return *this; } - intpseudovec& operator<<=(int_t n) + intvec_t& operator<<=(int_t n) { for (int d=0; d>(int_t n) const + intvec_t operator>>(int_t n) const { - intpseudovec res = *this; + intvec_t res = *this; return res >>= n; } - intpseudovec operator<<(int_t n) const + intvec_t operator<<(int_t n) const { - intpseudovec res = *this; + intvec_t res = *this; return res <<= n; } @@ -339,24 +339,24 @@ namespace vecmathlib { return res; } intvec_t rotate(intvec_t n) const; - intpseudovec& operator>>=(intpseudovec n) + intvec_t& operator>>=(intvec_t n) { for (int d=0; d>= n.v[d]; return *this; } - intpseudovec& operator<<=(intpseudovec n) + intvec_t& operator<<=(intvec_t n) { for (int d=0; d>(intpseudovec n) const + intvec_t operator>>(intvec_t n) const { - intpseudovec res = *this; + intvec_t res = *this; return res >>= n; } - intpseudovec operator<<(intpseudovec n) const + intvec_t operator<<(intvec_t n) const { - intpseudovec res = *this; + intvec_t res = *this; return res <<= n; } @@ -401,37 +401,37 @@ namespace vecmathlib { - boolvec_t operator==(intpseudovec const& x) const + boolvec_t operator==(intvec_t const& x) const { boolvec_t res; for (int d=0; d(intpseudovec const& x) const + boolvec_t operator>(intvec_t const& x) const { boolvec_t res; for (int d=0; d x.v[d]; return res; } - boolvec_t operator>=(intpseudovec const& x) const + boolvec_t operator>=(intvec_t const& x) const { boolvec_t res; for (int d=0; d= x.v[d]; @@ -586,7 +586,7 @@ namespace vecmathlib { realpseudovec(real_t const* as) { for (int d=0; d(realpseudovec const& x) const + boolvec_t operator>(realvec_t const& x) const { boolvec_t res; for (int d=0; d x.v[d]; return res; } - boolvec_t operator>=(realpseudovec const& x) const + boolvec_t operator>=(realvec_t const& x) const { boolvec_t res; for (int d=0; d= x.v[d]; @@ -788,44 +788,44 @@ namespace vecmathlib { - realpseudovec acos() const { return map(vml_std::acos); } - realpseudovec acosh() const { return map(vml_std::acosh); } - realpseudovec asin() const { return map(vml_std::asin); } - realpseudovec asinh() const { return map(vml_std::asinh); } - realpseudovec atan() const { return map(vml_std::atan); } - realpseudovec atan2(realpseudovec y) const + realvec_t acos() const { return map(vml_std::acos); } + realvec_t acosh() const { return map(vml_std::acosh); } + realvec_t asin() const { return map(vml_std::asin); } + realvec_t asinh() const { return map(vml_std::asinh); } + realvec_t atan() const { return map(vml_std::atan); } + realvec_t atan2(realvec_t y) const { return MF::vml_atan2(*this, y); } - realpseudovec atanh() const { return map(vml_std::atanh); } - realpseudovec cbrt() const { return map(vml_std::cbrt); } - realpseudovec ceil() const { return map(vml_std::ceil); } - realpseudovec copysign(realpseudovec y) const + realvec_t atanh() const { return map(vml_std::atanh); } + realvec_t cbrt() const { return map(vml_std::cbrt); } + realvec_t ceil() const { return map(vml_std::ceil); } + realvec_t copysign(realvec_t y) const { return map(vml_std::copysign, y); } - realpseudovec cos() const { return map(vml_std::cos); } - realpseudovec cosh() const { return map(vml_std::cosh); } - realpseudovec exp() const { return map(vml_std::exp); } - realpseudovec exp10() const + realvec_t cos() const { return map(vml_std::cos); } + realvec_t cosh() const { return map(vml_std::cosh); } + realvec_t exp() const { return map(vml_std::exp); } + realvec_t exp10() const { realvec_t res; for (int d=0; d