diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-11-06 17:25:12 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-11-06 17:25:12 +0700 |
commit | df651f2abe8711de81ffb4d7e0fddee36a298e70 (patch) | |
tree | 666aba534a9373a76489d48eccc5557d4eb4406b /crypto/src/runtime/intrinsics/x86/Ssse3.cs | |
parent | Refactoring in tests (diff) | |
download | BouncyCastle.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.cs | 20 |
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 +// } + } +} |