summaryrefslogtreecommitdiffstats
path: root/vec_sse_float1.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_sse_float1.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_sse_float1.h')
-rw-r--r--vec_sse_float1.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/vec_sse_float1.h b/vec_sse_float1.h
index e4c8aaf..67185a1 100644
--- a/vec_sse_float1.h
+++ b/vec_sse_float1.h
@@ -507,26 +507,26 @@ namespace vecmathlib {
// boolvec definitions
- inline
- auto boolvec<float,1>::as_int() const -> intvec_t
+ inline boolvec<float,1>::intvec_t boolvec<float,1>::as_int() const
{
return I(v);
}
- inline
- auto boolvec<float,1>::convert_int() const -> intvec_t
+ inline boolvec<float,1>::intvec_t boolvec<float,1>::convert_int() const
{
return v;
}
inline
- auto boolvec<float,1>::ifthen(intvec_t x, intvec_t y) const -> intvec_t
+ boolvec<float,1>::intvec_t boolvec<float,1>::ifthen(intvec_t x, intvec_t y)
+ const
{
return v ? x : y;
}
inline
- auto boolvec<float,1>::ifthen(realvec_t x, realvec_t y) const -> realvec_t
+ boolvec<float,1>::realvec_t boolvec<float,1>::ifthen(realvec_t x, realvec_t y)
+ const
{
return v ? x : y;
}
@@ -535,12 +535,12 @@ namespace vecmathlib {
// intvec definitions
- inline auto intvec<float,1>::as_float() const -> realvec_t
+ inline intvec<float,1>::realvec_t intvec<float,1>::as_float() const
{
return FP::as_float(v);
}
- inline auto intvec<float,1>::convert_float() const -> realvec_t
+ inline intvec<float,1>::realvec_t intvec<float,1>::convert_float() const
{
// return FP::convert_float(v);
return _mm_cvtss_f32(_mm_cvtsi32_ss(_mm_setzero_ps(), v));
OpenPOWER on IntegriCloud