unicorn/qemu/include/fpu
Joseph Myers 8d0bf2d6e1 softfloat: return low bits of quotient from floatx80_modrem
Both x87 and m68k need the low parts of the quotient for their
remainder operations. Arrange for floatx80_modrem to track those bits
and return them via a pointer.

The architectures using float32_rem and float64_rem do not appear to
need this information, so the *_rem interface is left unchanged and
the information returned only from floatx80_modrem. The logic used to
determine the low 7 bits of the quotient for m68k
(target/m68k/fpu_helper.c:make_quotient) appears completely bogus (it
looks at the result of converting the remainder to integer, the
quotient having been discarded by that point); this patch does not
change that, but the m68k maintainers may wish to do so.

Backports commit 445810ec915687d37b8ae0ef8d7340ab4a153efa from qemu
2021-02-25 13:39:10 -05:00
..
softfloat-helpers.h softfloat: Name rounding mode enum 2020-05-21 18:02:05 -04:00
softfloat-macros.h softfloat: Replace flag with bool 2020-05-21 17:48:12 -04:00
softfloat-types.h softfloat: Name rounding mode enum 2020-05-21 18:02:05 -04:00
softfloat.h softfloat: return low bits of quotient from floatx80_modrem 2021-02-25 13:39:10 -05:00