Browse Source

* reset fpu on win64 as well, certain operations like ln use it

git-svn-id: trunk@6920 -
florian 18 years ago
parent
commit
605e82489a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      rtl/x86_64/x86_64.inc

+ 3 - 2
rtl/x86_64/x86_64.inc

@@ -595,11 +595,12 @@ const
 Procedure SysResetFPU;
 begin
   asm
-{$ifndef WIN64}
+{ Win64 uses the fpu for ln etc. so we've to reset it as well
+  $ifndef WIN64}
     { initialize fpu }
     fninit
     fwait
-{$endif WIN64}
+{ $endif WIN64}
 {$ifdef FPC_PIC}
     movq fpucw@GOTPCREL(%rip),%rax
     fldcw (%rax)