summary refs log tree commit diff
path: root/crypto/src/math/BigInteger.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/math/BigInteger.cs
parentAesX86Engine improvements (diff)
downloadBouncyCastle.NET-ed25519-c5a1f12eff4da07c373b9a146003dac60614387c.tar.xz
More precise preprocessor directives
Diffstat (limited to 'crypto/src/math/BigInteger.cs')
-rw-r--r--crypto/src/math/BigInteger.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/math/BigInteger.cs b/crypto/src/math/BigInteger.cs
index f915beafc..d6c43cdc0 100644
--- a/crypto/src/math/BigInteger.cs
+++ b/crypto/src/math/BigInteger.cs
@@ -2,7 +2,7 @@ using System;
 using System.Collections.Generic;
 using System.Diagnostics;
 using System.Globalization;
-#if NET5_0_OR_GREATER
+#if NETCOREAPP3_0_OR_GREATER
 using System.Runtime.Intrinsics.X86;
 #endif
 using System.Runtime.Serialization;
@@ -894,7 +894,7 @@ namespace Org.BouncyCastle.Math
 
         public static int BitCnt(int i)
         {
-#if NET5_0_OR_GREATER
+#if NETCOREAPP3_0_OR_GREATER
             if (Popcnt.IsSupported)
             {
                 return (int)Popcnt.PopCount((uint)i);
@@ -968,7 +968,7 @@ namespace Org.BouncyCastle.Math
         //
         private static int BitLen(int w)
         {
-#if NET5_0_OR_GREATER
+#if NETCOREAPP3_0_OR_GREATER
             if (Lzcnt.IsSupported)
             {
                 return 32 - (int)Lzcnt.LeadingZeroCount((uint)w);