aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Optimizations.cs
diff options
context:
space:
mode:
authorriperiperi <rhy3756547@hotmail.com>2020-03-25 06:20:29 +0000
committerGitHub <noreply@github.com>2020-03-25 17:20:29 +1100
commitf695a215ad84607a2df8f31f2138918926eb3f0c (patch)
tree0dac9798da61e20fb984e81745b3ce195058bb93 /ARMeilleure/Optimizations.cs
parenta40d8d4a174ae9ec7c2900b7064625a366ae14ad (diff)
Add Fast Paths for Crypto instructions (A32/A64) (#1026)
* Add Fast Paths for Crypto instructions (A32/A64) * Replace additional XOR with passing in const zero.
Diffstat (limited to 'ARMeilleure/Optimizations.cs')
-rw-r--r--ARMeilleure/Optimizations.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/ARMeilleure/Optimizations.cs b/ARMeilleure/Optimizations.cs
index 28af0936..b486c5d2 100644
--- a/ARMeilleure/Optimizations.cs
+++ b/ARMeilleure/Optimizations.cs
@@ -16,6 +16,7 @@ namespace ARMeilleure
public static bool UseSse42IfAvailable { get; set; } = true;
public static bool UsePopCntIfAvailable { get; set; } = true;
public static bool UseAvxIfAvailable { get; set; } = true;
+ public static bool UseAesniIfAvailable { get; set; } = true;
public static bool ForceLegacySse
{
@@ -31,5 +32,6 @@ namespace ARMeilleure
internal static bool UseSse42 => UseSse42IfAvailable && HardwareCapabilities.SupportsSse42;
internal static bool UsePopCnt => UsePopCntIfAvailable && HardwareCapabilities.SupportsPopcnt;
internal static bool UseAvx => UseAvxIfAvailable && HardwareCapabilities.SupportsAvx && !ForceLegacySse;
+ internal static bool UseAesni => UseAesniIfAvailable && HardwareCapabilities.SupportsAesni;
}
} \ No newline at end of file