summary refs log tree commit diff
path: root/crypto/src/util/Longs.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-07-19 15:28:24 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-07-19 15:28:24 +0700
commitc5a1f12eff4da07c373b9a146003dac60614387c (patch)
treea51d8f4cf5740409bcb5688406302e9f93d116d7 /crypto/src/util/Longs.cs
parentAesX86Engine improvements (diff)
downloadBouncyCastle.NET-ed25519-c5a1f12eff4da07c373b9a146003dac60614387c.tar.xz
More precise preprocessor directives
Diffstat (limited to '')
-rw-r--r--crypto/src/util/Longs.cs6
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);