This reverts commit 85dbb9559a
.
This commit is contained in:
parent
85dbb9559a
commit
3615a70cae
299 changed files with 12276 additions and 12268 deletions
|
@ -2,24 +2,24 @@ namespace Ryujinx.HLE.Utilities
|
|||
{
|
||||
static class IntUtils
|
||||
{
|
||||
public static int AlignUp(int value, int size)
|
||||
public static int AlignUp(int Value, int Size)
|
||||
{
|
||||
return (value + (size - 1)) & ~(size - 1);
|
||||
return (Value + (Size - 1)) & ~(Size - 1);
|
||||
}
|
||||
|
||||
public static long AlignUp(long value, int size)
|
||||
public static long AlignUp(long Value, int Size)
|
||||
{
|
||||
return (value + (size - 1)) & ~((long)size - 1);
|
||||
return (Value + (Size - 1)) & ~((long)Size - 1);
|
||||
}
|
||||
|
||||
public static int AlignDown(int value, int size)
|
||||
public static int AlignDown(int Value, int Size)
|
||||
{
|
||||
return value & ~(size - 1);
|
||||
return Value & ~(Size - 1);
|
||||
}
|
||||
|
||||
public static long AlignDown(long value, int size)
|
||||
public static long AlignDown(long Value, int Size)
|
||||
{
|
||||
return value & ~((long)size - 1);
|
||||
return Value & ~((long)Size - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue