qemu/include/fpu
Richard Henderson 5dfbc9e490 softfloat: Fix division
The __udiv_qrnnd primitive that we nicked from gmp requires its
inputs to be normalized.  We were not doing that.  Because the
inputs are nearly normalized already, finishing that is trivial.

Replace div128to64 with a "proper" udiv_qrnnd, so that this
remains a reusable primitive.

Fixes: cf07323d49
Fixes: https://bugs.launchpad.net/qemu/+bug/1793119
Tested-by: Emilio G. Cota <cota@braap.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2018-10-05 12:57:41 -05:00
..
softfloat-macros.h softfloat: Fix division 2018-10-05 12:57:41 -05:00
softfloat-types.h fpu/softfloat: Specialize on snan_bit_is_one 2018-05-17 15:27:15 -07:00
softfloat.h softfloat: remove float64_trunc_to_int 2018-10-05 12:57:41 -05:00