mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 13:11:06 +02:00
* x86-64: removed some fwait instructions from fpc_frac_real, they shouldn't be necessary
git-svn-id: trunk@49626 -
This commit is contained in:
parent
ade1bad057
commit
fafee8b85b
@ -292,19 +292,17 @@ const
|
|||||||
oldcw,newcw: word;
|
oldcw,newcw: word;
|
||||||
asm
|
asm
|
||||||
fnstcw oldcw
|
fnstcw oldcw
|
||||||
fwait
|
|
||||||
movw oldcw,%cx
|
movw oldcw,%cx
|
||||||
orw $0x0c3f,%cx
|
orw $0x0c3f,%cx
|
||||||
movw %cx,newcw
|
movw %cx,newcw
|
||||||
fldcw newcw
|
fldcw newcw
|
||||||
fwait
|
|
||||||
fldt d
|
fldt d
|
||||||
frndint
|
frndint
|
||||||
fldt d
|
fldt d
|
||||||
fsub %st(1),%st
|
fsub %st(1),%st
|
||||||
fstp %st(1)
|
fstp %st(1)
|
||||||
fnclex
|
|
||||||
fldcw oldcw
|
fldcw oldcw
|
||||||
|
fwait
|
||||||
end;
|
end;
|
||||||
{$endif FPC_SYSTEM_HAS_FRAC}
|
{$endif FPC_SYSTEM_HAS_FRAC}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user