mirror of
https://github.com/reactos/reactos.git
synced 2025-06-05 17:30:32 +00:00
[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:
parent
4e457245b2
commit
1e5d331ec6
1 changed files with 2 additions and 21 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue