diff options
Diffstat (limited to 'crypto/src/runtime/intrinsics/x86/Bmi2.cs')
-rw-r--r-- | crypto/src/runtime/intrinsics/x86/Bmi2.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/crypto/src/runtime/intrinsics/x86/Bmi2.cs b/crypto/src/runtime/intrinsics/x86/Bmi2.cs new file mode 100644 index 000000000..5ce1c03c4 --- /dev/null +++ b/crypto/src/runtime/intrinsics/x86/Bmi2.cs @@ -0,0 +1,20 @@ +namespace Org.BouncyCastle.Runtime.Intrinsics.X86 +{ + internal static class Bmi2 + { +#if NETCOREAPP3_0_OR_GREATER + internal static bool IsEnabled => System.Runtime.Intrinsics.X86.Bmi2.IsSupported; +#else + internal static bool IsEnabled => false; +#endif + + internal static class X64 + { +#if NETCOREAPP3_0_OR_GREATER + internal static bool IsEnabled => System.Runtime.Intrinsics.X86.Bmi2.X64.IsSupported; +#else + internal static bool IsEnabled => false; +#endif + } + } +} |