Browse Source

* x86-64: removed some fwait instructions from fpc_frac_real, they shouldn't be necessary

git-svn-id: trunk@49626 -
florian 4 years ago
parent
commit
fafee8b85b
1 changed files with 1 additions and 3 deletions
  1. 1 3
      rtl/x86_64/math.inc

+ 1 - 3
rtl/x86_64/math.inc

@@ -292,19 +292,17 @@ const
         oldcw,newcw: word;
       asm
             fnstcw oldcw
-            fwait
             movw oldcw,%cx
             orw $0x0c3f,%cx
             movw %cx,newcw
             fldcw newcw
-            fwait
             fldt d
             frndint
             fldt d
             fsub %st(1),%st
             fstp %st(1)
-            fnclex
             fldcw oldcw
+            fwait
       end;
     {$endif FPC_SYSTEM_HAS_FRAC}