mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-16 04:30:35 +01:00
* use v*csr instructions if they are available
This commit is contained in:
parent
fbf68af605
commit
652e75f8ec
@ -72,8 +72,12 @@ const
|
||||
procedure SetMXCSR(w : dword);
|
||||
begin
|
||||
defaultmxcsr:=w;
|
||||
asm
|
||||
asm
|
||||
{$ifdef FPUX86_HAS_AVXUNIT}
|
||||
vldmxcsr w
|
||||
{$else FPUX86_HAS_AVXUNIT}
|
||||
ldmxcsr w
|
||||
{$endif FPUX86_HAS_AVXUNIT}
|
||||
end;
|
||||
end;
|
||||
|
||||
@ -82,7 +86,11 @@ const
|
||||
var
|
||||
_w : dword;
|
||||
asm
|
||||
{$ifdef FPUX86_HAS_AVXUNIT}
|
||||
vstmxcsr _w
|
||||
{$else FPUX86_HAS_AVXUNIT}
|
||||
stmxcsr _w
|
||||
{$endif FPUX86_HAS_AVXUNIT}
|
||||
movl _w,%eax
|
||||
end;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user