mirror of
https://github.com/Z3Prover/z3
synced 2026-02-19 07:04:22 +00:00
Remove copies (#8583)
This commit is contained in:
parent
0da28c6d19
commit
836a76c78a
14 changed files with 38 additions and 51 deletions
|
|
@ -2133,7 +2133,7 @@ namespace polynomial {
|
|||
m_m2pos.reset(m);
|
||||
m_m2pos.set(m, i);
|
||||
}
|
||||
m_tmp_as.swap(new_as);
|
||||
m_tmp_as = std::move(new_as);
|
||||
}
|
||||
|
||||
// For each monomial m
|
||||
|
|
|
|||
|
|
@ -301,7 +301,6 @@ namespace upolynomial {
|
|||
|
||||
void core_manager::sub(unsigned sz1, numeral const * p1, unsigned sz2, numeral const * p2, numeral_vector & buffer) {
|
||||
sub_core(sz1, p1, sz2, p2, m_basic_tmp);
|
||||
// buffer = std::move(m_basic_tmp);
|
||||
buffer.swap(m_basic_tmp);
|
||||
}
|
||||
|
||||
|
|
@ -343,7 +342,6 @@ namespace upolynomial {
|
|||
|
||||
void core_manager::mul(unsigned sz1, numeral const * p1, unsigned sz2, numeral const * p2, numeral_vector & buffer) {
|
||||
mul_core(sz1, p1, sz2, p2, m_basic_tmp);
|
||||
// buffer = std::move(m_basic_tmp);
|
||||
buffer.swap(m_basic_tmp);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue