diff options
Diffstat (limited to 'ARMeilleure/Optimizations.cs')
-rw-r--r-- | ARMeilleure/Optimizations.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ARMeilleure/Optimizations.cs b/ARMeilleure/Optimizations.cs index 9044314f6..a84a4dc4f 100644 --- a/ARMeilleure/Optimizations.cs +++ b/ARMeilleure/Optimizations.cs | |||
@@ -23,6 +23,10 @@ namespace ARMeilleure | |||
23 | public static bool UseSse42IfAvailable { get; set; } = true; | 23 | public static bool UseSse42IfAvailable { get; set; } = true; |
24 | public static bool UsePopCntIfAvailable { get; set; } = true; | 24 | public static bool UsePopCntIfAvailable { get; set; } = true; |
25 | public static bool UseAvxIfAvailable { get; set; } = true; | 25 | public static bool UseAvxIfAvailable { get; set; } = true; |
26 | public static bool UseAvx512FIfAvailable { get; set; } = true; | ||
27 | public static bool UseAvx512VlIfAvailable { get; set; } = true; | ||
28 | public static bool UseAvx512BwIfAvailable { get; set; } = true; | ||
29 | public static bool UseAvx512DqIfAvailable { get; set; } = true; | ||
26 | public static bool UseF16cIfAvailable { get; set; } = true; | 30 | public static bool UseF16cIfAvailable { get; set; } = true; |
27 | public static bool UseFmaIfAvailable { get; set; } = true; | 31 | public static bool UseFmaIfAvailable { get; set; } = true; |
28 | public static bool UseAesniIfAvailable { get; set; } = true; | 32 | public static bool UseAesniIfAvailable { get; set; } = true; |
@@ -47,11 +51,18 @@ namespace ARMeilleure | |||
47 | internal static bool UseSse42 => UseSse42IfAvailable && X86HardwareCapabilities.SupportsSse42; | 51 | internal static bool UseSse42 => UseSse42IfAvailable && X86HardwareCapabilities.SupportsSse42; |
48 | internal static bool UsePopCnt => UsePopCntIfAvailable && X86HardwareCapabilities.SupportsPopcnt; | 52 | internal static bool UsePopCnt => UsePopCntIfAvailable && X86HardwareCapabilities.SupportsPopcnt; |
49 | internal static bool UseAvx => UseAvxIfAvailable && X86HardwareCapabilities.SupportsAvx && !ForceLegacySse; | 53 | internal static bool UseAvx => UseAvxIfAvailable && X86HardwareCapabilities.SupportsAvx && !ForceLegacySse; |
54 | internal static bool UseAvx512F => UseAvx512FIfAvailable && X86HardwareCapabilities.SupportsAvx512F && !ForceLegacySse; | ||
55 | internal static bool UseAvx512Vl => UseAvx512VlIfAvailable && X86HardwareCapabilities.SupportsAvx512Vl && !ForceLegacySse; | ||
56 | internal static bool UseAvx512Bw => UseAvx512BwIfAvailable && X86HardwareCapabilities.SupportsAvx512Bw && !ForceLegacySse; | ||
57 | internal static bool UseAvx512Dq => UseAvx512DqIfAvailable && X86HardwareCapabilities.SupportsAvx512Dq && !ForceLegacySse; | ||
50 | internal static bool UseF16c => UseF16cIfAvailable && X86HardwareCapabilities.SupportsF16c; | 58 | internal static bool UseF16c => UseF16cIfAvailable && X86HardwareCapabilities.SupportsF16c; |
51 | internal static bool UseFma => UseFmaIfAvailable && X86HardwareCapabilities.SupportsFma; | 59 | internal static bool UseFma => UseFmaIfAvailable && X86HardwareCapabilities.SupportsFma; |
52 | internal static bool UseAesni => UseAesniIfAvailable && X86HardwareCapabilities.SupportsAesni; | 60 | internal static bool UseAesni => UseAesniIfAvailable && X86HardwareCapabilities.SupportsAesni; |
53 | internal static bool UsePclmulqdq => UsePclmulqdqIfAvailable && X86HardwareCapabilities.SupportsPclmulqdq; | 61 | internal static bool UsePclmulqdq => UsePclmulqdqIfAvailable && X86HardwareCapabilities.SupportsPclmulqdq; |
54 | internal static bool UseSha => UseShaIfAvailable && X86HardwareCapabilities.SupportsSha; | 62 | internal static bool UseSha => UseShaIfAvailable && X86HardwareCapabilities.SupportsSha; |
55 | internal static bool UseGfni => UseGfniIfAvailable && X86HardwareCapabilities.SupportsGfni; | 63 | internal static bool UseGfni => UseGfniIfAvailable && X86HardwareCapabilities.SupportsGfni; |
64 | |||
65 | internal static bool UseAvx512Ortho => UseAvx512F && UseAvx512Vl; | ||
66 | internal static bool UseAvx512OrthoFloat => UseAvx512Ortho && UseAvx512Dq; | ||
56 | } | 67 | } |
57 | } | 68 | } |