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

git-svn-id: trunk@6920 -
This commit is contained in:
florian 2007-03-18 20:25:58 +00:00
parent c127753bb8
commit 605e82489a

View File

@ -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)