diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-07-19 15:28:24 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-07-19 15:28:24 +0700 |
commit | c5a1f12eff4da07c373b9a146003dac60614387c (patch) | |
tree | a51d8f4cf5740409bcb5688406302e9f93d116d7 /crypto/src/util | |
parent | AesX86Engine improvements (diff) | |
download | BouncyCastle.NET-ed25519-c5a1f12eff4da07c373b9a146003dac60614387c.tar.xz |
More precise preprocessor directives
Diffstat (limited to 'crypto/src/util')
-rw-r--r-- | crypto/src/util/Integers.cs | 6 | ||||
-rw-r--r-- | crypto/src/util/Longs.cs | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/crypto/src/util/Integers.cs b/crypto/src/util/Integers.cs index b32cdfc30..ff907ac80 100644 --- a/crypto/src/util/Integers.cs +++ b/crypto/src/util/Integers.cs @@ -1,5 +1,5 @@ using System; -#if NET5_0_OR_GREATER +#if NETCOREAPP3_0_OR_GREATER using System.Runtime.Intrinsics.X86; #endif @@ -45,7 +45,7 @@ namespace Org.BouncyCastle.Utilities public static int NumberOfLeadingZeros(int i) { -#if NET5_0_OR_GREATER +#if NETCOREAPP3_0_OR_GREATER if (Lzcnt.IsSupported) { return (int)Lzcnt.LeadingZeroCount((uint)i); @@ -67,7 +67,7 @@ namespace Org.BouncyCastle.Utilities public static int NumberOfTrailingZeros(int i) { -#if NET5_0_OR_GREATER +#if NETCOREAPP3_0_OR_GREATER if (Bmi1.IsSupported) { return (int)Bmi1.TrailingZeroCount((uint)i); diff --git a/crypto/src/util/Longs.cs b/crypto/src/util/Longs.cs index ff45a8143..45dd91090 100644 --- a/crypto/src/util/Longs.cs +++ b/crypto/src/util/Longs.cs @@ -1,5 +1,5 @@ using System; -#if NET5_0_OR_GREATER +#if NETCOREAPP3_0_OR_GREATER using System.Runtime.Intrinsics.X86; #endif @@ -48,7 +48,7 @@ namespace Org.BouncyCastle.Utilities public static int NumberOfLeadingZeros(long i) { -#if NET5_0_OR_GREATER +#if NETCOREAPP3_0_OR_GREATER if (Lzcnt.X64.IsSupported) { return (int)Lzcnt.X64.LeadingZeroCount((ulong)i); @@ -66,7 +66,7 @@ namespace Org.BouncyCastle.Utilities public static int NumberOfTrailingZeros(long i) { -#if NET5_0_OR_GREATER +#if NETCOREAPP3_0_OR_GREATER if (Bmi1.X64.IsSupported) { return (int)Bmi1.X64.TrailingZeroCount((ulong)i); |