diff options
author | Berkan Diler <b.diler@gmx.de> | 2022-02-18 02:35:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-18 02:35:23 +0100 |
commit | 98c838b24c464fd627ad09078250e4801db8967e (patch) | |
tree | ff1fcd0371d55255bcd39876cc2d685a7fe7485b /Ryujinx.HLE/HOS/Kernel/Process/KContextIdManager.cs | |
parent | 63c9c64196465bd97abacceb1d83fa53de358d23 (diff) |
Use BitOperations methods and delete now unused BitUtils methods (#3134)1.1.42
Replaces BitUtils.CountTrailingZeros/CountLeadingZeros/IsPowerOfTwo with BitOperations methods
Diffstat (limited to 'Ryujinx.HLE/HOS/Kernel/Process/KContextIdManager.cs')
-rw-r--r-- | Ryujinx.HLE/HOS/Kernel/Process/KContextIdManager.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Ryujinx.HLE/HOS/Kernel/Process/KContextIdManager.cs b/Ryujinx.HLE/HOS/Kernel/Process/KContextIdManager.cs index 0392b930..ed57ae04 100644 --- a/Ryujinx.HLE/HOS/Kernel/Process/KContextIdManager.cs +++ b/Ryujinx.HLE/HOS/Kernel/Process/KContextIdManager.cs @@ -1,5 +1,6 @@ using Ryujinx.Common; using System; +using System.Numerics; namespace Ryujinx.HLE.HOS.Kernel.Process { @@ -32,7 +33,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Process { int mask = _idMasks[index]; - int firstFreeBit = BitUtils.CountLeadingZeros32((mask + 1) & ~mask); + int firstFreeBit = BitOperations.LeadingZeroCount((uint)((mask + 1) & ~mask)); if (firstFreeBit < 32) { |