unicorn/qemu/fpu
Richard Henderson 76e343ef55
fpu: Bound increment for scalbn
Without bounding the increment, we can overflow exp either here
in scalbn_decomposed or when adding the bias in round_canonical.
This can result in e.g. underflowing to 0 instead of overflowing
to infinity.

The old softfloat code did bound the increment.

Backports commit ce8d4082054519f2eaac39958edde502860a7fc6 from qemu
2018-04-18 09:21:03 -04:00
..
softfloat-macros.h softfloat: export some functions 2018-03-09 01:22:00 -05:00
softfloat-specialize.h softfloat-specialize: Perform comparison pass with qemu 2018-03-21 13:27:59 -04:00
softfloat.c fpu: Bound increment for scalbn 2018-04-18 09:21:03 -04:00