mirror of
https://github.com/Z3Prover/z3
synced 2025-05-03 22:05:45 +00:00
Added support for the final draft of the FPA standard (and fpa2bv conversion).
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
b2be81fd4d
commit
0e74362ecb
12 changed files with 290 additions and 14 deletions
|
@ -1400,6 +1400,10 @@ mpf_exp_t mpf_manager::mk_max_exp(unsigned ebits) {
|
|||
return m_mpz_manager.get_int64(m_powers2.m1(ebits-1, false));
|
||||
}
|
||||
|
||||
mpf_exp_t mpf_manager::unbias_exp(unsigned ebits, mpf_exp_t biased_exponent) {
|
||||
return biased_exponent - m_mpz_manager.get_int64(m_powers2.m1(ebits - 1, false));
|
||||
}
|
||||
|
||||
void mpf_manager::mk_nzero(unsigned ebits, unsigned sbits, mpf & o) {
|
||||
o.sbits = sbits;
|
||||
o.ebits = ebits;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue