OSDN Git Service

softfloat: do not set denominator high bit for floatx80 remainder
authorJoseph Myers <joseph@codesourcery.com>
Mon, 8 Jun 2020 16:56:47 +0000 (16:56 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 26 Jun 2020 13:39:38 +0000 (09:39 -0400)
commit566601f1f9d972e44214696d3cb320e6c18880aa
treeca7e471b36606222433e6e4b839a41fe6b2a68b6
parentb662495dca0a2a36008cf8def91e2566519ed3f2
softfloat: do not set denominator high bit for floatx80 remainder

The floatx80 remainder implementation unnecessarily sets the high bit
of bSig explicitly.  By that point in the function, arguments that are
invalid, zero, infinity or NaN have already been handled and
subnormals have been through normalizeFloatx80Subnormal, so the high
bit will already be set.  Remove the unnecessary code.

Signed-off-by: Joseph Myers <joseph@codesourcery.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <alpine.DEB.2.21.2006081656220.23637@digraph.polyomino.org.uk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
fpu/softfloat.c