1
1
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2025-08-23 05:16:27 -05:00

Remove IntUtils and use BitUtils instead. (#774)

This commit is contained in:
Ac_K
2019-09-20 06:41:57 +02:00
committed by jduncanator
parent 72b9f8f0a0
commit f48df486e2
2 changed files with 3 additions and 28 deletions

View File

@@ -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);
}
}
}