Skip to content

Commit

Permalink
Fix the return type to be compliant with the C++ standard
Browse files Browse the repository at this point in the history
  • Loading branch information
yafshar committed Aug 31, 2020
1 parent 009f066 commit 20d5b0d
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions xsum/xsum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2581,7 +2581,7 @@ xsum_small_accumulator xsum_large::round_to_small() {
sacc.Inf = _lacc->sacc.Inf;
sacc.NaN = _lacc->sacc.NaN;
sacc.adds_until_propagate = _lacc->sacc.adds_until_propagate;
return std::move(sacc);
return sacc;
}

u = *p;
Expand All @@ -2596,7 +2596,7 @@ xsum_small_accumulator xsum_large::round_to_small() {
sacc.Inf = _lacc->sacc.Inf;
sacc.NaN = _lacc->sacc.NaN;
sacc.adds_until_propagate = _lacc->sacc.adds_until_propagate;
return std::move(sacc);
return sacc;
}

u = *p;
Expand All @@ -2611,7 +2611,7 @@ xsum_small_accumulator xsum_large::round_to_small() {
sacc.Inf = _lacc->sacc.Inf;
sacc.NaN = _lacc->sacc.NaN;
sacc.adds_until_propagate = _lacc->sacc.adds_until_propagate;
return std::move(sacc);
return sacc;
}

u = *p;
Expand All @@ -2626,7 +2626,7 @@ xsum_small_accumulator xsum_large::round_to_small() {
sacc.Inf = _lacc->sacc.Inf;
sacc.NaN = _lacc->sacc.NaN;
sacc.adds_until_propagate = _lacc->sacc.adds_until_propagate;
return std::move(sacc);
return sacc;
}
}

Expand Down Expand Up @@ -2668,7 +2668,7 @@ xsum_small_accumulator xsum_large::round_to_small() {
sacc.Inf = _lacc->sacc.Inf;
sacc.NaN = _lacc->sacc.NaN;
sacc.adds_until_propagate = _lacc->sacc.adds_until_propagate;
return std::move(sacc);
return sacc;
}

xsum_small_accumulator xsum_large::round_to_small(
Expand Down Expand Up @@ -2714,7 +2714,7 @@ xsum_small_accumulator xsum_large::round_to_small(
sacc.Inf = lacc->sacc.Inf;
sacc.NaN = lacc->sacc.NaN;
sacc.adds_until_propagate = lacc->sacc.adds_until_propagate;
return std::move(sacc);
return sacc;
}

u = *p;
Expand All @@ -2729,7 +2729,7 @@ xsum_small_accumulator xsum_large::round_to_small(
sacc.Inf = lacc->sacc.Inf;
sacc.NaN = lacc->sacc.NaN;
sacc.adds_until_propagate = lacc->sacc.adds_until_propagate;
return std::move(sacc);
return sacc;
}

u = *p;
Expand All @@ -2744,7 +2744,7 @@ xsum_small_accumulator xsum_large::round_to_small(
sacc.Inf = lacc->sacc.Inf;
sacc.NaN = lacc->sacc.NaN;
sacc.adds_until_propagate = lacc->sacc.adds_until_propagate;
return std::move(sacc);
return sacc;
}

u = *p;
Expand All @@ -2759,7 +2759,7 @@ xsum_small_accumulator xsum_large::round_to_small(
sacc.Inf = lacc->sacc.Inf;
sacc.NaN = lacc->sacc.NaN;
sacc.adds_until_propagate = lacc->sacc.adds_until_propagate;
return std::move(sacc);
return sacc;
}
}

Expand Down Expand Up @@ -2801,7 +2801,7 @@ xsum_small_accumulator xsum_large::round_to_small(
sacc.Inf = lacc->sacc.Inf;
sacc.NaN = lacc->sacc.NaN;
sacc.adds_until_propagate = lacc->sacc.adds_until_propagate;
return std::move(sacc);
return sacc;
}

xsum_small_accumulator *xsum_large::round_to_small_ptr() {
Expand Down Expand Up @@ -5504,7 +5504,7 @@ xsum_small_accumulator xsum_round_to_small(xsum_large_accumulator *const lacc) {
sacc.Inf = lacc->sacc.Inf;
sacc.NaN = lacc->sacc.NaN;
sacc.adds_until_propagate = lacc->sacc.adds_until_propagate;
return std::move(sacc);
return sacc;
}

u = *p;
Expand All @@ -5519,7 +5519,7 @@ xsum_small_accumulator xsum_round_to_small(xsum_large_accumulator *const lacc) {
sacc.Inf = lacc->sacc.Inf;
sacc.NaN = lacc->sacc.NaN;
sacc.adds_until_propagate = lacc->sacc.adds_until_propagate;
return std::move(sacc);
return sacc;
}

u = *p;
Expand All @@ -5534,7 +5534,7 @@ xsum_small_accumulator xsum_round_to_small(xsum_large_accumulator *const lacc) {
sacc.Inf = lacc->sacc.Inf;
sacc.NaN = lacc->sacc.NaN;
sacc.adds_until_propagate = lacc->sacc.adds_until_propagate;
return std::move(sacc);
return sacc;
}

u = *p;
Expand All @@ -5549,7 +5549,7 @@ xsum_small_accumulator xsum_round_to_small(xsum_large_accumulator *const lacc) {
sacc.Inf = lacc->sacc.Inf;
sacc.NaN = lacc->sacc.NaN;
sacc.adds_until_propagate = lacc->sacc.adds_until_propagate;
return std::move(sacc);
return sacc;
}
}

Expand Down Expand Up @@ -5590,7 +5590,7 @@ xsum_small_accumulator xsum_round_to_small(xsum_large_accumulator *const lacc) {
sacc.Inf = lacc->sacc.Inf;
sacc.NaN = lacc->sacc.NaN;
sacc.adds_until_propagate = lacc->sacc.adds_until_propagate;
return std::move(sacc);
return sacc;
}

template <>
Expand Down

0 comments on commit 20d5b0d

Please sign in to comment.