mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-09 17:56:27 +02:00
misc: chore: [ci skip] Use explicit types & target-typed new
This commit is contained in:
parent
faacec9801
commit
6ab899f621
4 changed files with 15 additions and 17 deletions
|
@ -52,7 +52,7 @@ namespace ARMeilleure.Translation.Cache
|
|||
return;
|
||||
}
|
||||
|
||||
var firstRegion = new ReservedRegion(allocator, CacheSize);
|
||||
ReservedRegion firstRegion = new(allocator, CacheSize);
|
||||
_jitRegions.Add(firstRegion);
|
||||
_activeRegionIndex = 0;
|
||||
|
||||
|
@ -124,7 +124,7 @@ namespace ARMeilleure.Translation.Cache
|
|||
{
|
||||
Debug.Assert(_initialized);
|
||||
|
||||
foreach (var region in _jitRegions)
|
||||
foreach (ReservedRegion region in _jitRegions)
|
||||
{
|
||||
if (pointer.ToInt64() < region.Pointer.ToInt64() ||
|
||||
pointer.ToInt64() >= (region.Pointer + CacheSize).ToInt64())
|
||||
|
@ -224,7 +224,7 @@ namespace ARMeilleure.Translation.Cache
|
|||
{
|
||||
lock (_lock)
|
||||
{
|
||||
foreach (var region in _jitRegions)
|
||||
foreach (ReservedRegion _ in _jitRegions)
|
||||
{
|
||||
int index = _cacheEntries.BinarySearch(new CacheEntry(offset, 0, default));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue