xemu/include/fpu
Joseph Myers 445810ec91 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.

Signed-off-by: Joseph Myers <joseph@codesourcery.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <alpine.DEB.2.21.2006081656500.23637@digraph.polyomino.org.uk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-06-26 09:39:38 -04:00
..
softfloat-helpers.h softfloat: Name rounding mode enum 2020-05-19 08:41:26 -07:00
softfloat-macros.h softfloat: Replace flag with bool 2020-05-19 08:40:50 -07:00
softfloat-types.h softfloat: Name rounding mode enum 2020-05-19 08:41:26 -07:00
softfloat.h softfloat: return low bits of quotient from floatx80_modrem 2020-06-26 09:39:38 -04:00