mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
parent
0b15fc9402
commit
04266fccc9
|
@ -990,6 +990,7 @@ void mpf_manager::sqrt(mpf_rounding_mode rm, mpf const & x, mpf & o) {
|
||||||
TRACE("mpf_dbg", tout << "dec'ed " << m_mpz_manager.to_string(o.significand) << std::endl;);
|
TRACE("mpf_dbg", tout << "dec'ed " << m_mpz_manager.to_string(o.significand) << std::endl;);
|
||||||
}
|
}
|
||||||
o.exponent = a.exponent() >> 1;
|
o.exponent = a.exponent() >> 1;
|
||||||
|
if (a.exponent() % 2 == 0) o.exponent--;
|
||||||
|
|
||||||
round(rm, o);
|
round(rm, o);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue