mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-08 12:58:57 +02:00
Revert "misc: chore: Remove redundant code"
This reverts commit 05a88ccc94.
This commit is contained in:
@@ -2,6 +2,7 @@ using Ryujinx.Common;
|
||||
using Ryujinx.Horizon.Common;
|
||||
using Ryujinx.Horizon.Sdk.Sf;
|
||||
using Ryujinx.Horizon.Sdk.Sf.Hipc;
|
||||
using System;
|
||||
|
||||
namespace Ryujinx.Horizon.Sdk.Codec.Detail
|
||||
{
|
||||
|
||||
@@ -9,11 +9,20 @@ namespace Ryujinx.Horizon.Sdk.Ngc.Detail
|
||||
private const int CompressedEntriesPerBlock = 64;
|
||||
private const int BitsPerWord = Set.BitsPerWord;
|
||||
|
||||
private readonly struct BitfieldRange(uint range, int baseValue)
|
||||
private readonly struct BitfieldRange
|
||||
{
|
||||
public int BitfieldIndex => (int)(range & 0x7ffffff);
|
||||
public int BitfieldLength => (int)(range >> 27) + 1;
|
||||
public int BaseValue => baseValue;
|
||||
private readonly uint _range;
|
||||
private readonly int _baseValue;
|
||||
|
||||
public int BitfieldIndex => (int)(_range & 0x7ffffff);
|
||||
public int BitfieldLength => (int)(_range >> 27) + 1;
|
||||
public int BaseValue => _baseValue;
|
||||
|
||||
public BitfieldRange(uint range, int baseValue)
|
||||
{
|
||||
_range = range;
|
||||
_baseValue = baseValue;
|
||||
}
|
||||
}
|
||||
|
||||
private uint[] _bitfieldRanges;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
|
||||
namespace Ryujinx.Horizon.Sdk.OsTypes
|
||||
|
||||
Reference in New Issue
Block a user