mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-06-28 23:30:47 -07:00
Remove IntUtils and use BitUtils instead. (#774)
This commit is contained in:
@ -1,25 +0,0 @@
|
||||
namespace Ryujinx.HLE.Utilities
|
||||
{
|
||||
static class IntUtils
|
||||
{
|
||||
public static int AlignUp(int value, int size)
|
||||
{
|
||||
return (value + (size - 1)) & ~(size - 1);
|
||||
}
|
||||
|
||||
public static long AlignUp(long value, int size)
|
||||
{
|
||||
return (value + (size - 1)) & ~((long)size - 1);
|
||||
}
|
||||
|
||||
public static int AlignDown(int value, int size)
|
||||
{
|
||||
return value & ~(size - 1);
|
||||
}
|
||||
|
||||
public static long AlignDown(long value, int size)
|
||||
{
|
||||
return value & ~((long)size - 1);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user