blob: ba0726c3178696aa73ca3ab882e6fc6a1adf795f (
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 RoundUp(int Value, int Size)
{
return (Value + (Size - 1)) & ~(Size - 1);
}
public static long RoundUp(long Value, int Size)
{
return (Value + (Size - 1)) & ~((long)Size - 1);
}
}
}
|