From 1e5d331ec68eb93e414e638f9bfcf3e8be57abe0 Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Thu, 21 May 2015 00:51:21 +0000 Subject: [PATCH] [FAST486] No underflows will occur in Fast486FpuAdd when the signs are different, since the exponent won't be reduced. svn path=/trunk/; revision=67840 --- reactos/lib/fast486/fpu.c | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/reactos/lib/fast486/fpu.c b/reactos/lib/fast486/fpu.c index 0b4ceecdf0d..05e0db5fbe1 100644 --- a/reactos/lib/fast486/fpu.c +++ b/reactos/lib/fast486/fpu.c @@ -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; } }