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/Longs.cs | |
parent | AesX86Engine improvements (diff) | |
download | BouncyCastle.NET-ed25519-c5a1f12eff4da07c373b9a146003dac60614387c.tar.xz |
More precise preprocessor directives
Diffstat (limited to '')
-rw-r--r-- | crypto/src/util/Longs.cs | 6 |
1 files changed, 3 insertions, 3 deletions
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); |