mirror of
https://github.com/Z3Prover/z3
synced 2026-02-22 16:27:37 +00:00
Replace user-defined swap with C++11 move semantics for covert move patterns (#8543)
This commit is contained in:
parent
c50d41a6e8
commit
58431ec158
6 changed files with 28 additions and 10 deletions
|
|
@ -52,7 +52,7 @@ s_integer gcd(const s_integer & r1, const s_integer & r2) {
|
|||
tmp2.neg();
|
||||
}
|
||||
if (tmp1 < tmp2) {
|
||||
tmp1.swap(tmp2);
|
||||
std::swap(tmp1, tmp2);
|
||||
}
|
||||
for(;;) {
|
||||
s_integer aux = tmp1 % tmp2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue