Ryujinx/Ryujinx.HLE/OsHle/Utilities/EndianSwap.cs
2018-06-15 10:22:04 -07:00

8 lines
284 B
C#

namespace Ryujinx.HLE.OsHle.Utilities
{
static class EndianSwap
{
public static short Swap16(short Value) => (short)(((Value >> 8) & 0xff) | (Value << 8));
public static ushort Swap16(ushort Value) => (ushort)(((Value >> 8) & 0xff) | (Value << 8));
}
}