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