summary refs log tree commit diff
path: root/crypto/src/runtime/intrinsics/x86/Avx2.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/runtime/intrinsics/x86/Avx2.cs')
-rw-r--r--crypto/src/runtime/intrinsics/x86/Avx2.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/crypto/src/runtime/intrinsics/x86/Avx2.cs b/crypto/src/runtime/intrinsics/x86/Avx2.cs
new file mode 100644
index 000000000..180b4f35c
--- /dev/null
+++ b/crypto/src/runtime/intrinsics/x86/Avx2.cs
@@ -0,0 +1,20 @@
+namespace Org.BouncyCastle.Runtime.Intrinsics.X86
+{
+    internal static class Avx2
+    {
+#if NETCOREAPP3_0_OR_GREATER
+        internal static bool IsEnabled => System.Runtime.Intrinsics.X86.Avx2.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.Avx2.X64.IsSupported;
+//#else
+//            internal static bool IsEnabled => false;
+//#endif
+//        }
+    }
+}