aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/AOptimizations.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ChocolArm64/AOptimizations.cs')
-rw-r--r--ChocolArm64/AOptimizations.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/ChocolArm64/AOptimizations.cs b/ChocolArm64/AOptimizations.cs
index e8c1f7c4..800cf363 100644
--- a/ChocolArm64/AOptimizations.cs
+++ b/ChocolArm64/AOptimizations.cs
@@ -6,7 +6,15 @@ public static class AOptimizations
public static bool GenerateCallStack = true;
- public static bool UseSse2IfAvailable = true;
+ private static bool UseAllSseIfAvailable = true;
- internal static bool UseSse2 = UseSse2IfAvailable && Sse2.IsSupported;
+ private static bool UseSseIfAvailable = true;
+ private static bool UseSse2IfAvailable = true;
+ private static bool UseSse41IfAvailable = true;
+ private static bool UseSse42IfAvailable = true;
+
+ internal static bool UseSse = (UseAllSseIfAvailable && UseSseIfAvailable) && Sse.IsSupported;
+ internal static bool UseSse2 = (UseAllSseIfAvailable && UseSse2IfAvailable) && Sse2.IsSupported;
+ internal static bool UseSse41 = (UseAllSseIfAvailable && UseSse41IfAvailable) && Sse41.IsSupported;
+ internal static bool UseSse42 = (UseAllSseIfAvailable && UseSse42IfAvailable) && Sse42.IsSupported;
} \ No newline at end of file