aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Kernel/KMemoryRegionBlock.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-12-04 22:52:39 -0200
committerGitHub <noreply@github.com>2018-12-04 22:52:39 -0200
commit3615a70cae3f89197fe185dfc5d0a47fa42151d9 (patch)
tree8e4737422fba15199c1a6ce7c6345996c0e907b5 /Ryujinx.HLE/HOS/Kernel/KMemoryRegionBlock.cs
parent85dbb9559ad317a657dafd24da27fec4b3f5250f (diff)
Revert "Adjust naming conventions and general refactoring in HLE Project (#490)" (#526)
This reverts commit 85dbb9559ad317a657dafd24da27fec4b3f5250f.
Diffstat (limited to 'Ryujinx.HLE/HOS/Kernel/KMemoryRegionBlock.cs')
-rw-r--r--Ryujinx.HLE/HOS/Kernel/KMemoryRegionBlock.cs18
1 files changed, 9 insertions, 9 deletions
diff --git a/Ryujinx.HLE/HOS/Kernel/KMemoryRegionBlock.cs b/Ryujinx.HLE/HOS/Kernel/KMemoryRegionBlock.cs
index f7e85e9a..1f334e65 100644
--- a/Ryujinx.HLE/HOS/Kernel/KMemoryRegionBlock.cs
+++ b/Ryujinx.HLE/HOS/Kernel/KMemoryRegionBlock.cs
@@ -12,30 +12,30 @@ namespace Ryujinx.HLE.HOS.Kernel
public int Order;
public int NextOrder;
- public bool TryCoalesce(int index, int size)
+ public bool TryCoalesce(int Index, int Size)
{
- long mask = ((1L << size) - 1) << (index & 63);
+ long Mask = ((1L << Size) - 1) << (Index & 63);
- index /= 64;
+ Index /= 64;
- if ((mask & ~Masks[MaxLevel - 1][index]) != 0)
+ if ((Mask & ~Masks[MaxLevel - 1][Index]) != 0)
{
return false;
}
- Masks[MaxLevel - 1][index] &= ~mask;
+ Masks[MaxLevel - 1][Index] &= ~Mask;
- for (int level = MaxLevel - 2; level >= 0; level--, index /= 64)
+ for (int Level = MaxLevel - 2; Level >= 0; Level--, Index /= 64)
{
- Masks[level][index / 64] &= ~(1L << (index & 63));
+ Masks[Level][Index / 64] &= ~(1L << (Index & 63));
- if (Masks[level][index / 64] != 0)
+ if (Masks[Level][Index / 64] != 0)
{
break;
}
}
- FreeCount -= (ulong)size;
+ FreeCount -= (ulong)Size;
return true;
}