mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-19 12:29:19 +02:00
* reset fpu on win64 as well, certain operations like ln use it
git-svn-id: trunk@6920 -
This commit is contained in:
parent
c127753bb8
commit
605e82489a
@ -595,11 +595,12 @@ const
|
|||||||
Procedure SysResetFPU;
|
Procedure SysResetFPU;
|
||||||
begin
|
begin
|
||||||
asm
|
asm
|
||||||
{$ifndef WIN64}
|
{ Win64 uses the fpu for ln etc. so we've to reset it as well
|
||||||
|
$ifndef WIN64}
|
||||||
{ initialize fpu }
|
{ initialize fpu }
|
||||||
fninit
|
fninit
|
||||||
fwait
|
fwait
|
||||||
{$endif WIN64}
|
{ $endif WIN64}
|
||||||
{$ifdef FPC_PIC}
|
{$ifdef FPC_PIC}
|
||||||
movq fpucw@GOTPCREL(%rip),%rax
|
movq fpucw@GOTPCREL(%rip),%rax
|
||||||
fldcw (%rax)
|
fldcw (%rax)
|
||||||
|
Loading…
Reference in New Issue
Block a user