Author: aandrejevic
Date: Thu May 21 00:51:21 2015
New Revision: 67840
URL:
http://svn.reactos.org/svn/reactos?rev=67840&view=rev
Log:
[FAST486]
No underflows will occur in Fast486FpuAdd when the signs are different, since
the exponent won't be reduced.
Modified:
trunk/reactos/lib/fast486/fpu.c
Modified: trunk/reactos/lib/fast486/fpu.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fast486/fpu.c?rev=6784…
==============================================================================
--- trunk/reactos/lib/fast486/fpu.c [iso-8859-1] (original)
+++ trunk/reactos/lib/fast486/fpu.c [iso-8859-1] Thu May 21 00:51:21 2015
@@ -729,27 +729,8 @@
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;
}
}