summaryrefslogtreecommitdiffstats
path: root/vec_vsx_double2.h
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-07-06 17:19:40 -0400
committerErik Schnetter <schnetter@gmail.com>2013-07-06 17:19:40 -0400
commitd4b78995d8ef3364dcc1437089bc967f888ba67d (patch)
tree2052741be6e4544f4aa9567558070055b90b71dd /vec_vsx_double2.h
parent8b4229381b4cc4d09f62f921c2017a2bc03c32e7 (diff)
downloadvecmathlib-d4b78995d8ef3364dcc1437089bc967f888ba67d.zip
vecmathlib-d4b78995d8ef3364dcc1437089bc967f888ba67d.tar.gz
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.
Diffstat (limited to 'vec_vsx_double2.h')
-rw-r--r--vec_vsx_double2.h17
1 files changed, 9 insertions, 8 deletions
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<double,2>::as_int() const -> intvec_t
+ inline boolvec<double,2>::intvec_t boolvec<double,2>::as_int() const
{
return (__vector long long) v;
}
- inline
- auto boolvec<double,2>::convert_int() const -> intvec_t
+ inline boolvec<double,2>::intvec_t boolvec<double,2>::convert_int() const
{
return -(__vector long long)v;
}
inline
- auto boolvec<double,2>::ifthen(intvec_t x, intvec_t y) const -> intvec_t
+ boolvec<double,2>::intvec_t boolvec<double,2>::ifthen(intvec_t x, intvec_t y)
+ const
{
return vec_sel(y.v, x.v, v);
}
inline
- auto boolvec<double,2>::ifthen(realvec_t x, realvec_t y) const -> realvec_t
+ boolvec<double,2>::realvec_t boolvec<double,2>::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<double,2>::as_float() const -> realvec_t
+ inline intvec<double,2>::realvec_t intvec<double,2>::as_float() const
{
return (__vector double)v;
}
- inline auto intvec<double,2>::convert_float() const -> realvec_t
+ inline intvec<double,2>::realvec_t intvec<double,2>::convert_float() const
{
// return vec_ctd(v, 0);
return MF::vml_convert_float(*this);
OpenPOWER on IntegriCloud