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