mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 05:18:44 +00:00
Bugfix for MPF unpacking
This commit is contained in:
parent
8c3fc574d1
commit
b58d3f4335
|
@ -1475,6 +1475,9 @@ void mpf_manager::mk_ninf(unsigned ebits, unsigned sbits, mpf & o) {
|
|||
|
||||
void mpf_manager::unpack(mpf & o, bool normalize) {
|
||||
// Insert the hidden bit or adjust the exponent of denormal numbers.
|
||||
if (is_zero(o))
|
||||
return;
|
||||
|
||||
if (is_normal(o))
|
||||
m_mpz_manager.add(o.significand, m_powers2(o.sbits-1), o.significand);
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue