diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2023-06-10 21:51:35 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-11 00:51:35 +0000 |
| commit | 193ca3c9a28b63613407c2923f5903e1dd33fdce (patch) | |
| tree | c0ce3f32dc145bb98312afdf7538995538fa0d5c /src/ARMeilleure/Optimizations.cs | |
| parent | eb0bb36bbfc3a4f5f2ac1c8721e192239f899a1d (diff) | |
Implement fast path for AES crypto instructions on Arm64 (#5281)
* Implement fast path for AES crypto instructions on Arm64
* PPTC version bump
* Use AES HW feature check
Diffstat (limited to 'src/ARMeilleure/Optimizations.cs')
| -rw-r--r-- | src/ARMeilleure/Optimizations.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ARMeilleure/Optimizations.cs b/src/ARMeilleure/Optimizations.cs index a84a4dc4..13348cec 100644 --- a/src/ARMeilleure/Optimizations.cs +++ b/src/ARMeilleure/Optimizations.cs @@ -13,6 +13,7 @@ namespace ARMeilleure public static bool UseUnmanagedDispatchLoop { get; set; } = true; public static bool UseAdvSimdIfAvailable { get; set; } = true; + public static bool UseArm64AesIfAvailable { get; set; } = true; public static bool UseArm64PmullIfAvailable { get; set; } = true; public static bool UseSseIfAvailable { get; set; } = true; @@ -41,6 +42,7 @@ namespace ARMeilleure } internal static bool UseAdvSimd => UseAdvSimdIfAvailable && Arm64HardwareCapabilities.SupportsAdvSimd; + internal static bool UseArm64Aes => UseArm64AesIfAvailable && Arm64HardwareCapabilities.SupportsAes; internal static bool UseArm64Pmull => UseArm64PmullIfAvailable && Arm64HardwareCapabilities.SupportsPmull; internal static bool UseSse => UseSseIfAvailable && X86HardwareCapabilities.SupportsSse; |
