From 4e457245b256be879ef61bc63f432301039862f2 Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Thu, 21 May 2015 00:44:49 +0000 Subject: [PATCH] [FAST486] Fix the broken math in r67838. svn path=/trunk/; revision=67839 --- reactos/lib/fast486/fpu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reactos/lib/fast486/fpu.c b/reactos/lib/fast486/fpu.c index ab778bd909b..0b4ceecdf0d 100644 --- a/reactos/lib/fast486/fpu.c +++ b/reactos/lib/fast486/fpu.c @@ -747,9 +747,8 @@ Fast486FpuAdd(PFAST486_STATE State, } else { - /* Lose the MSB */ - TempResult.Mantissa <<= 1; - TempResult.Exponent--; + /* Reverse the mantissa */ + TempResult.Mantissa = -(LONGLONG)TempResult.Mantissa; } } }