summary refs log tree commit diff
path: root/crypto/src/runtime/intrinsics/x86/Bmi2.cs
blob: 5ce1c03c4448e816fac7f1eda56bb17850f2e00b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
        }
    }
}