mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-24 13:34:16 +00:00
8f6387128a
* Add files via upload * Add files via upload * Add files via upload * CPE * Add EmitSse42Crc32() * Update CpuTestSimdCmp.cs * Update Pseudocode.cs * Update Instructions.cs * Update CpuTestSimd.cs * Update Instructions.cs
20 lines
No EOL
855 B
C#
20 lines
No EOL
855 B
C#
using System.Runtime.Intrinsics.X86;
|
|
|
|
public static class AOptimizations
|
|
{
|
|
public static bool DisableMemoryChecks = false;
|
|
|
|
public static bool GenerateCallStack = true;
|
|
|
|
private static bool UseAllSseIfAvailable = true;
|
|
|
|
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;
|
|
} |