summary refs log tree commit diff
path: root/crypto/src/runtime/intrinsics/x86/Ssse3.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-11-06 17:25:12 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-11-06 17:25:12 +0700
commitdf651f2abe8711de81ffb4d7e0fddee36a298e70 (patch)
tree666aba534a9373a76489d48eccc5557d4eb4406b /crypto/src/runtime/intrinsics/x86/Ssse3.cs
parentRefactoring in tests (diff)
downloadBouncyCastle.NET-ed25519-df651f2abe8711de81ffb4d7e0fddee36a298e70.tar.xz
Create indirection layer for intrinsics support
Diffstat (limited to 'crypto/src/runtime/intrinsics/x86/Ssse3.cs')
-rw-r--r--crypto/src/runtime/intrinsics/x86/Ssse3.cs20
1 files changed, 20 insertions, 0 deletions
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
+//        }
+    }
+}