diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-07-06 17:19:40 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-07-06 17:19:40 -0400 |
commit | d4b78995d8ef3364dcc1437089bc967f888ba67d (patch) | |
tree | 2052741be6e4544f4aa9567558070055b90b71dd /vec_sse_float1.h | |
parent | 8b4229381b4cc4d09f62f921c2017a2bc03c32e7 (diff) | |
download | vecmathlib-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.h | 16 |
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)); |