mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
FPA: Added conversion operator float -> float.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
197b2e8ddb
commit
e5f03f999a
4 changed files with 188 additions and 29 deletions
|
@ -367,7 +367,7 @@ void mpf_manager::set(mpf & o, unsigned ebits, unsigned sbits, mpf_rounding_mode
|
|||
o.ebits = ebits;
|
||||
o.sbits = sbits;
|
||||
|
||||
signed ds = sbits - x.sbits;
|
||||
signed ds = sbits - x.sbits + 4; // plus rounding bits
|
||||
if (ds > 0)
|
||||
{
|
||||
m_mpz_manager.mul2k(o.significand, ds);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue