mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2025-09-06 22:26:27 -05:00
Rename Ryujinx.Core to Ryujinx.HLE and add a separate project for a future LLE implementation
This commit is contained in:
7
Ryujinx.HLE/OsHle/Utilities/EndianSwap.cs
Normal file
7
Ryujinx.HLE/OsHle/Utilities/EndianSwap.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Ryujinx.HLE.OsHle.Utilities
|
||||
{
|
||||
static class EndianSwap
|
||||
{
|
||||
public static short Swap16(short Value) => (short)(((Value >> 8) & 0xff) | (Value << 8));
|
||||
}
|
||||
}
|
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