mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
softfloat: Reduce FloatFmt
Remove frac_lsb, frac_lsbm1, roundeven_mask. Compute these from round_mask in parts$N_uncanon_normal. With floatx80, round_mask will not be tied to frac_shift. Everything else is easily computable. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
25fdedf0d3
commit
d6e1f0cd59
2 changed files with 15 additions and 20 deletions
|
@ -145,10 +145,10 @@ static void partsN(uncanon_normal)(FloatPartsN *p, float_status *s,
|
|||
{
|
||||
const int exp_max = fmt->exp_max;
|
||||
const int frac_shift = fmt->frac_shift;
|
||||
const uint64_t frac_lsb = fmt->frac_lsb;
|
||||
const uint64_t frac_lsbm1 = fmt->frac_lsbm1;
|
||||
const uint64_t round_mask = fmt->round_mask;
|
||||
const uint64_t roundeven_mask = fmt->roundeven_mask;
|
||||
const uint64_t frac_lsb = round_mask + 1;
|
||||
const uint64_t frac_lsbm1 = round_mask ^ (round_mask >> 1);
|
||||
const uint64_t roundeven_mask = round_mask | frac_lsb;
|
||||
uint64_t inc;
|
||||
bool overflow_norm = false;
|
||||
int exp, flags = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue