mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 21:38:44 +00:00
add move constructor to mpf
This commit is contained in:
parent
d1c13f17b0
commit
468e0207f7
|
@ -40,12 +40,6 @@ mpf::mpf(unsigned _ebits, unsigned _sbits):
|
||||||
set(ebits, sbits);
|
set(ebits, sbits);
|
||||||
}
|
}
|
||||||
|
|
||||||
mpf::mpf(mpf const & other) {
|
|
||||||
// It is safe if the mpz numbers are small.
|
|
||||||
// I need it for resize method in vector.
|
|
||||||
// UNREACHABLE();
|
|
||||||
}
|
|
||||||
|
|
||||||
mpf::~mpf() {
|
mpf::~mpf() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,12 @@ class mpf {
|
||||||
public:
|
public:
|
||||||
mpf();
|
mpf();
|
||||||
mpf(unsigned ebits, unsigned sbits);
|
mpf(unsigned ebits, unsigned sbits);
|
||||||
mpf(mpf const & other);
|
mpf(mpf && other) :
|
||||||
|
ebits(other.ebits),
|
||||||
|
sbits(other.sbits),
|
||||||
|
sign(other.sign),
|
||||||
|
significand(std::move(other.significand)),
|
||||||
|
exponent(other.exponent) {}
|
||||||
~mpf();
|
~mpf();
|
||||||
unsigned get_ebits() const { return ebits; }
|
unsigned get_ebits() const { return ebits; }
|
||||||
unsigned get_sbits() const { return sbits; }
|
unsigned get_sbits() const { return sbits; }
|
||||||
|
|
Loading…
Reference in a new issue