blob: 39cced280a50d46b4293ea18f96204b639c26b04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
namespace Ryujinx.HLE.OsHle.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);
}
}
}
|