mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 14:20:05 +02:00
+ UseAVX check
git-svn-id: trunk@22642 -
This commit is contained in:
parent
c57f463ede
commit
d7e0f07aab
@ -150,6 +150,8 @@ unit cgx86;
|
||||
winstackpagesize = 4096;
|
||||
{$endif NOTARGETWIN}
|
||||
|
||||
function UseAVX: boolean;
|
||||
|
||||
implementation
|
||||
|
||||
uses
|
||||
@ -158,6 +160,11 @@ unit cgx86;
|
||||
tgobj,ncgutil,
|
||||
fmodule,symsym;
|
||||
|
||||
function UseAVX: boolean;
|
||||
begin
|
||||
Result:=current_settings.fputype in [fpu_avx];
|
||||
end;
|
||||
|
||||
const
|
||||
TOpCG2AsmOp: Array[topcg] of TAsmOp = (A_NONE,A_MOV,A_ADD,A_AND,A_DIV,
|
||||
A_IDIV,A_IMUL,A_MUL,A_NEG,A_NOT,A_OR,
|
||||
|
Loading…
Reference in New Issue
Block a user