Rename Ryujinx.Core to Ryujinx.HLE and add a separate project for a future LLE implementation
This commit is contained in:
15
Ryujinx.HLE/OsHle/Utilities/IntUtils.cs
Normal file
15
Ryujinx.HLE/OsHle/Utilities/IntUtils.cs
Normal file
@ -0,0 +1,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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user