mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-14 09:46:40 +00:00
6d65e53664
* Remove unused tracing functionality from the CPU * GetNsoExecutable -> GetExecutable * Unsigned comparison * Re-add cpu tracing * Config change * Remove cold methods from the translation cache on the cpu * Replace lock with try lock, pass new ATranslatorCache instead of ATranslator * Rebase fixups
16 lines
No EOL
752 B
C#
16 lines
No EOL
752 B
C#
using System.Runtime.Intrinsics.X86;
|
|
|
|
public static class AOptimizations
|
|
{
|
|
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;
|
|
} |