[FAST486]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Thu, 21 May 2015 00:44:49 +0000 (00:44 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Thu, 21 May 2015 00:44:49 +0000 (00:44 +0000)
Fix the broken math in r67838.

svn path=/trunk/; revision=67839

reactos/lib/fast486/fpu.c

index ab778bd..0b4ceec 100644 (file)
@@ -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;
             }
         }
     }