summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mathfuncs_convert.h4
-rw-r--r--mathfuncs_fabs.h23
-rw-r--r--vec_double_qpx.h12
-rw-r--r--vec_pseudo.h21
-rw-r--r--vec_test.h18
5 files changed, 34 insertions, 44 deletions
diff --git a/mathfuncs_convert.h b/mathfuncs_convert.h
index 3868680..d11c700 100644
--- a/mathfuncs_convert.h
+++ b/mathfuncs_convert.h
@@ -53,8 +53,8 @@ namespace vecmathlib {
template<typename realvec_t>
- // auto mathfuncs<realvec_t>::vml_convert_int(realvec_t x) -> intvec_t
- typename realvec_t::intvec_t mathfuncs<realvec_t>::vml_convert_int(realvec_t x)
+ typename realvec_t::intvec_t
+ mathfuncs<realvec_t>::vml_convert_int(realvec_t x)
{
// Handle overflow
// int_t min_int = FP::signbit_mask;
diff --git a/mathfuncs_fabs.h b/mathfuncs_fabs.h
index f04004a..60fb0a8 100644
--- a/mathfuncs_fabs.h
+++ b/mathfuncs_fabs.h
@@ -51,7 +51,6 @@ namespace vecmathlib {
}
template<typename realvec_t>
- // auto mathfuncs<realvec_t>::vml_ilogb(realvec_t x) -> intvec_t
typename realvec_t::intvec_t mathfuncs<realvec_t>::vml_ilogb(realvec_t x)
{
intvec_t e = lsr(as_int(x) & IV(FP::exponent_mask), FP::mantissa_bits);
@@ -67,22 +66,22 @@ namespace vecmathlib {
}
template<typename realvec_t>
- // auto mathfuncs<realvec_t>::vml_ieee_isfinite(realvec_t x) -> boolvec_t
- typename realvec_t::boolvec_t mathfuncs<realvec_t>::vml_ieee_isfinite(realvec_t x)
+ typename realvec_t::boolvec_t
+ mathfuncs<realvec_t>::vml_ieee_isfinite(realvec_t x)
{
return (as_int(x) & IV(FP::exponent_mask)) != IV(FP::exponent_mask);
}
template<typename realvec_t>
- // auto mathfuncs<realvec_t>::vml_ieee_isinf(realvec_t x) -> boolvec_t
- typename realvec_t::boolvec_t mathfuncs<realvec_t>::vml_ieee_isinf(realvec_t x)
+ typename realvec_t::boolvec_t
+ mathfuncs<realvec_t>::vml_ieee_isinf(realvec_t x)
{
return (as_int(x) & IV(~FP::signbit_mask)) == IV(FP::exponent_mask);
}
template<typename realvec_t>
- // auto mathfuncs<realvec_t>::vml_ieee_isnan(realvec_t x) -> boolvec_t
- typename realvec_t::boolvec_t mathfuncs<realvec_t>::vml_ieee_isnan(realvec_t x)
+ typename realvec_t::boolvec_t
+ mathfuncs<realvec_t>::vml_ieee_isnan(realvec_t x)
{
return
(as_int(x) & IV(FP::exponent_mask)) == IV(FP::exponent_mask) &&
@@ -90,8 +89,8 @@ namespace vecmathlib {
}
template<typename realvec_t>
- // auto mathfuncs<realvec_t>::vml_ieee_isnormal(realvec_t x) -> boolvec_t
- typename realvec_t::boolvec_t mathfuncs<realvec_t>::vml_ieee_isnormal(realvec_t x)
+ typename realvec_t::boolvec_t
+ mathfuncs<realvec_t>::vml_ieee_isnormal(realvec_t x)
{
return
(as_int(x) & IV(FP::exponent_mask)) != IV(FP::exponent_mask) &&
@@ -99,8 +98,8 @@ namespace vecmathlib {
}
template<typename realvec_t>
- // auto mathfuncs<realvec_t>::vml_isfinite(realvec_t x) -> boolvec_t
- typename realvec_t::boolvec_t mathfuncs<realvec_t>::vml_isfinite(realvec_t x)
+ typename realvec_t::boolvec_t
+ mathfuncs<realvec_t>::vml_isfinite(realvec_t x)
{
#if defined VML_HAVE_INF || defined VML_HAVE_NAN
return vml_ieee_isfinite(x);
@@ -110,7 +109,6 @@ namespace vecmathlib {
}
template<typename realvec_t>
- // auto mathfuncs<realvec_t>::vml_isinf(realvec_t x) -> boolvec_t
typename realvec_t::boolvec_t mathfuncs<realvec_t>::vml_isinf(realvec_t x)
{
#if defined VML_HAVE_INF
@@ -149,7 +147,6 @@ namespace vecmathlib {
}
template<typename realvec_t>
- // auto mathfuncs<realvec_t>::vml_signbit(realvec_t x) -> boolvec_t
typename realvec_t::boolvec_t mathfuncs<realvec_t>::vml_signbit(realvec_t x)
{
return convert_bool(as_int(x) & IV(FP::signbit_mask));
diff --git a/vec_double_qpx.h b/vec_double_qpx.h
index b8c72a2..a879cca 100644
--- a/vec_double_qpx.h
+++ b/vec_double_qpx.h
@@ -613,29 +613,27 @@ namespace vecmathlib {
// boolvec definitions
inline
- // auto boolvec<double,4>::as_int() const -> intvec_t
boolvec<double,4>::intvec_t boolvec<double,4>::as_int() const
{
return v;
}
inline
- // auto boolvec<double,4>::convert_int() const -> intvec_t
boolvec<double,4>::intvec_t boolvec<double,4>::convert_int() const
{
return ifthen(IV(I(1)), IV(I(0)));
}
inline
- // auto boolvec<double,4>::ifthen(intvec_t x, intvec_t y) const -> intvec_t
- boolvec<double,4>::intvec_t boolvec<double,4>::ifthen(intvec_t x, intvec_t y) const
+ boolvec<double,4>::intvec_t boolvec<double,4>::ifthen(intvec_t x,
+ intvec_t y) const
{
return ifthen(x.as_float(), y.as_float()).as_int();
}
inline
- // auto boolvec<double,4>::ifthen(realvec_t x, realvec_t y) const -> realvec_t
- boolvec<double,4>::realvec_t boolvec<double,4>::ifthen(realvec_t x, realvec_t y) const
+ boolvec<double,4>::realvec_t boolvec<double,4>::ifthen(realvec_t x,
+ realvec_t y) const
{
return vec_sel(y.v, x.v, v);
}
@@ -644,13 +642,11 @@ namespace vecmathlib {
// intvec definitions
- // inline auto intvec<double,4>::as_float() const -> realvec_t
inline intvec<double,4>::realvec_t intvec<double,4>::as_float() const
{
return v;
}
- // inline auto intvec<double,4>::convert_float() const -> realvec_t
inline intvec<double,4>::realvec_t intvec<double,4>::convert_float() const
{
return vec_cfid(v);
diff --git a/vec_pseudo.h b/vec_pseudo.h
index 9965ee9..718c883 100644
--- a/vec_pseudo.h
+++ b/vec_pseudo.h
@@ -773,7 +773,6 @@ namespace vecmathlib {
template<typename T, int N>
inline
- // auto boolpseudovec<T,N>::as_int() const -> intvec_t
typename boolpseudovec<T,N>::intvec_t boolpseudovec<T,N>::as_int() const
{
return convert_int();
@@ -781,7 +780,6 @@ namespace vecmathlib {
template<typename T, int N>
inline
- // auto boolpseudovec<T,N>::convert_int() const -> intvec_t
typename boolpseudovec<T,N>::intvec_t boolpseudovec<T,N>::convert_int() const
{
intvec_t res;
@@ -791,8 +789,8 @@ namespace vecmathlib {
template<typename T, int N>
inline
- // auto boolpseudovec<T,N>::ifthen(intvec_t x, intvec_t y) const -> intvec_t
- typename boolpseudovec<T,N>::intvec_t boolpseudovec<T,N>::ifthen(intvec_t x, intvec_t y) const
+ typename boolpseudovec<T,N>::intvec_t
+ boolpseudovec<T,N>::ifthen(intvec_t x, intvec_t y) const
{
intvec_t res;
for (int d=0; d<size; ++d) res.v[d] = v[d] ? x.v[d] : y.v[d];
@@ -801,8 +799,8 @@ namespace vecmathlib {
template<typename T, int N>
inline
- // auto boolpseudovec<T,N>::ifthen(realvec_t x, realvec_t y) const -> realvec_t
- typename boolpseudovec<T,N>::realvec_t boolpseudovec<T,N>::ifthen(realvec_t x, realvec_t y) const
+ typename boolpseudovec<T,N>::realvec_t
+ boolpseudovec<T,N>::ifthen(realvec_t x, realvec_t y) const
{
realvec_t res;
for (int d=0; d<size; ++d) res.v[d] = v[d] ? x.v[d] : y.v[d];
@@ -814,8 +812,8 @@ namespace vecmathlib {
// intpseudovec definitions
template<typename T, int N>
- // inline auto intpseudovec<T,N>::as_float() const -> realvec_t
- inline typename intpseudovec<T,N>::realvec_t intpseudovec<T,N>::as_float() const
+ inline
+ typename intpseudovec<T,N>::realvec_t intpseudovec<T,N>::as_float() const
{
realvec_t res;
for (int d=0; d<size; ++d) res.v[d] = FP::as_float(v[d]);
@@ -823,8 +821,8 @@ namespace vecmathlib {
}
template<typename T, int N>
- // inline auto intpseudovec<T,N>::convert_float() const -> realvec_t
- inline typename intpseudovec<T,N>::realvec_t intpseudovec<T,N>::convert_float() const
+ inline
+ typename intpseudovec<T,N>::realvec_t intpseudovec<T,N>::convert_float() const
{
realvec_t res;
for (int d=0; d<size; ++d) res.v[d] = FP::convert_float(v[d]);
@@ -1200,7 +1198,8 @@ namespace vecmathlib {
template<typename real_t, int size>
inline
realpseudovec<real_t, size> ldexp(realpseudovec<real_t, size> x,
- typename intpseudovec<real_t, size>::int_t n)
+ typename intpseudovec<real_t, size>::int_t
+ n)
{
return x.ldexp(n);
}
diff --git a/vec_test.h b/vec_test.h
index da25ce3..c258e9b 100644
--- a/vec_test.h
+++ b/vec_test.h
@@ -709,7 +709,6 @@ namespace vecmathlib {
template<typename T, int N>
inline
- // auto booltestvec<T,N>::as_int() const -> intvec_t
typename booltestvec<T,N>::intvec_t booltestvec<T,N>::as_int() const
{
return convert_int();
@@ -717,7 +716,6 @@ namespace vecmathlib {
template<typename T, int N>
inline
- // auto booltestvec<T,N>::convert_int() const -> intvec_t
typename booltestvec<T,N>::intvec_t booltestvec<T,N>::convert_int() const
{
intvec_t res;
@@ -727,8 +725,8 @@ namespace vecmathlib {
template<typename T, int N>
inline
- // auto booltestvec<T,N>::ifthen(intvec_t x, intvec_t y) const -> intvec_t
- typename booltestvec<T,N>::intvec_t booltestvec<T,N>::ifthen(intvec_t x, intvec_t y) const
+ typename booltestvec<T,N>::intvec_t
+ booltestvec<T,N>::ifthen(intvec_t x, intvec_t y) const
{
intvec_t res;
for (int d=0; d<size; ++d) res.v[d] = v[d] ? x.v[d] : y.v[d];
@@ -737,8 +735,8 @@ namespace vecmathlib {
template<typename T, int N>
inline
- // auto booltestvec<T,N>::ifthen(realvec_t x, realvec_t y) const -> realvec_t
- typename booltestvec<T,N>::realvec_t booltestvec<T,N>::ifthen(realvec_t x, realvec_t y) const
+ typename booltestvec<T,N>::realvec_t
+ booltestvec<T,N>::ifthen(realvec_t x, realvec_t y) const
{
realvec_t res;
for (int d=0; d<size; ++d) res.v[d] = v[d] ? x.v[d] : y.v[d];
@@ -750,8 +748,8 @@ namespace vecmathlib {
// inttestvec definitions
template<typename T, int N>
- // inline auto inttestvec<T,N>::as_float() const -> realvec_t
- inline typename inttestvec<T,N>::realvec_t inttestvec<T,N>::as_float() const
+ inline
+ typename inttestvec<T,N>::realvec_t inttestvec<T,N>::as_float() const
{
realvec_t res;
for (int d=0; d<size; ++d) res.v[d] = FP::as_float(v[d]);
@@ -759,8 +757,8 @@ namespace vecmathlib {
}
template<typename T, int N>
- // inline auto inttestvec<T,N>::convert_float() const -> realvec_t
- inline typename inttestvec<T,N>::realvec_t inttestvec<T,N>::convert_float() const
+ inline
+ typename inttestvec<T,N>::realvec_t inttestvec<T,N>::convert_float() const
{
return MF::vml_convert_float(*this);
}
OpenPOWER on IntegriCloud