[FAST486]

No underflows will occur in Fast486FpuAdd when the signs are different, since
the exponent won't be reduced.


svn path=/trunk/; revision=67840
This commit is contained in:
Aleksandar Andrejevic 2015-05-21 00:51:21 +00:00
parent 4e457245b2
commit 1e5d331ec6

View file

@ -729,27 +729,8 @@ Fast486FpuAdd(PFAST486_STATE State,
if (TempResult.Mantissa >= FirstAdjusted.Mantissa
&& TempResult.Mantissa >= SecondAdjusted.Mantissa)
{
if (TempResult.Exponent == 0)
{
/* Raise the underflow exception */
State->FpuStatus.Ue = TRUE;
if (State->FpuControl.Um)
{
/* Total overflow, return zero */
TempResult.Mantissa = 0ULL;
}
else
{
Fast486FpuException(State);
return FALSE;
}
}
else
{
/* Reverse the mantissa */
TempResult.Mantissa = -(LONGLONG)TempResult.Mantissa;
}
/* Reverse the mantissa */
TempResult.Mantissa = -(LONGLONG)TempResult.Mantissa;
}
}