|
@@ -16,9 +16,24 @@
|
|
|
{$mode objfpc}
|
|
{$mode objfpc}
|
|
|
{$h+}
|
|
{$h+}
|
|
|
{$modeswitch advancedrecords}
|
|
{$modeswitch advancedrecords}
|
|
|
-{$IF FPC_FULLVERSION>=30301}
|
|
|
|
|
|
|
+{$if FPC_FULLVERSION>=30301}
|
|
|
{$modeswitch FUNCTIONREFERENCES}
|
|
{$modeswitch FUNCTIONREFERENCES}
|
|
|
{$define FPC_HAS_REFERENCE_PROCEDURE}
|
|
{$define FPC_HAS_REFERENCE_PROCEDURE}
|
|
|
|
|
+{$ifndef CPULLVM}
|
|
|
|
|
+{$if DEFINED(CPUARM) or DEFINED(CPUAARCH64)}
|
|
|
|
|
+ {$define FPC_USE_INTRINSICS}
|
|
|
|
|
+{$endif}
|
|
|
|
|
+{$if defined(CPUPOWERPC) or defined(CPUPOWERPC64)}
|
|
|
|
|
+ {$define FPC_USE_INTRINSICS}
|
|
|
|
|
+{$endif}
|
|
|
|
|
+{$if defined(CPURISCV32) or defined(CPURISCV64)}
|
|
|
|
|
+ {$define FPC_USE_INTRINSICS}
|
|
|
|
|
+{$endif}
|
|
|
|
|
+{ Also set FPC_USE_INTRINSICS for i386 and x86_64 }
|
|
|
|
|
+{$if defined(CPURISCV32) or defined(CPURISCV64)}
|
|
|
|
|
+ {$define FPC_USE_INTRINSICS}
|
|
|
|
|
+{$endif}
|
|
|
|
|
+{$endif}
|
|
|
{$endif}
|
|
{$endif}
|
|
|
{ determine the type of the resource/form file }
|
|
{ determine the type of the resource/form file }
|
|
|
{$define Win16Res}
|
|
{$define Win16Res}
|
|
@@ -39,11 +54,9 @@ uses
|
|
|
System.FGL,
|
|
System.FGL,
|
|
|
{$endif}
|
|
{$endif}
|
|
|
System.RtlConsts,
|
|
System.RtlConsts,
|
|
|
-{$IF FPC_FULLVERSION>=30301}
|
|
|
|
|
-{$IF DEFINED(CPUARM) or DEFINED(CPUAARCH64) or defined(CPUPOWERPC) or defined(CPUPOWERPC64)}
|
|
|
|
|
|
|
+{$ifdef FPC_USE_INTRINSICS}
|
|
|
System.Intrinsics,
|
|
System.Intrinsics,
|
|
|
-{$ENDIF}
|
|
|
|
|
-{$ENDIF}
|
|
|
|
|
|
|
+{$endif}
|
|
|
System.SortBase;
|
|
System.SortBase;
|
|
|
{$ELSE FPC_DOTTEDUNITS}
|
|
{$ELSE FPC_DOTTEDUNITS}
|
|
|
uses
|
|
uses
|
|
@@ -54,11 +67,9 @@ uses
|
|
|
fgl,
|
|
fgl,
|
|
|
{$endif}
|
|
{$endif}
|
|
|
rtlconsts,
|
|
rtlconsts,
|
|
|
-{$IF FPC_FULLVERSION>=30301}
|
|
|
|
|
-{$IF DEFINED(CPUARM) or DEFINED(CPUAARCH64) or defined(CPUPOWERPC) or defined(CPUPOWERPC64)}
|
|
|
|
|
|
|
+{$ifdef FPC_USE_INTRINSICS}
|
|
|
intrinsics,
|
|
intrinsics,
|
|
|
-{$ENDIF}
|
|
|
|
|
-{$ENDIF}
|
|
|
|
|
|
|
+{$endif}
|
|
|
sortbase;
|
|
sortbase;
|
|
|
{$ENDIF FPC_DOTTEDUNITS}
|
|
{$ENDIF FPC_DOTTEDUNITS}
|
|
|
|
|
|