arch 32 piswap fixes

This commit is contained in:
2020-07-16 13:41:29 +03:00
parent 1045b274fb
commit 478f0a7fd3
3 changed files with 14 additions and 7 deletions

View File

@@ -119,8 +119,10 @@ struct A {
void swap(int & x, int & y) {int t = x; x = y; y = t;}
void swap2(int & x, int & y) {int t(std::move(x)); x = y; y = t;}
void swap(size_t & x, size_t & y) {size_t t = x; x = y; y = t;}
void swap2(size_t & x, size_t & y) {size_t t{std::move(x)}; x = y; y = t;}
void swap(ullong & x, ullong & y) {ullong t = x; x = y; y = t;}
void swap2(ullong & x, ullong & y) {ullong t{std::move(x)}; x = y; y = t;}
void swap(llong & x, llong & y) {llong t = x; x = y; y = t;}
void swap2(llong & x, llong & y) {llong t{std::move(x)}; x = y; y = t;}
void swap(double & x, double & y) {double t = x; x = y; y = t;}
void swap2(double & x, double & y) {double t(std::move(x)); x = std::move(y); y = std::move(t);}
void swap(float & x, float & y) {float t = x; x = y; y = t;}