Przeglądaj źródła

* extended routines int/frac/trunc shouldn't mess with precision or exception flags, should fix #39275

florian 4 lat temu
rodzic
commit
777d536d9b
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      rtl/x86_64/math.inc

+ 3 - 3
rtl/x86_64/math.inc

@@ -295,7 +295,7 @@ const
             fnstcw oldcw
             fnstcw oldcw
             fldt d
             fldt d
             movw oldcw,%cx
             movw oldcw,%cx
-            orw $0x0c3f,%cx
+            orw $0x0c00,%cx
             movw %cx,newcw
             movw %cx,newcw
             fldcw newcw
             fldcw newcw
             fld %st
             fld %st
@@ -315,7 +315,7 @@ const
       asm
       asm
             fnstcw oldcw
             fnstcw oldcw
             movw oldcw,%cx
             movw oldcw,%cx
-            orw $0x0c3f,%cx
+            orw $0x0c00,%cx
             movw %cx,newcw
             movw %cx,newcw
             fldcw newcw
             fldcw newcw
             fldt d
             fldt d
@@ -336,7 +336,7 @@ const
       asm
       asm
         fnstcw oldcw
         fnstcw oldcw
         movw oldcw,%cx
         movw oldcw,%cx
-        orw $0x0c3f,%cx
+        orw $0x0c00,%cx
         movw %cx,newcw
         movw %cx,newcw
         fldcw newcw
         fldcw newcw
         fldt d
         fldt d