2018-06-11 02:46:42 +02:00
|
|
|
|
namespace Ryujinx.HLE.OsHle.Utilities
|
2018-03-12 02:05:39 +01:00
|
|
|
|
{
|
|
|
|
|
static class EndianSwap
|
|
|
|
|
{
|
|
|
|
|
public static short Swap16(short Value) => (short)(((Value >> 8) & 0xff) | (Value << 8));
|
2018-06-15 19:22:04 +02:00
|
|
|
|
public static ushort Swap16(ushort Value) => (ushort)(((Value >> 8) & 0xff) | (Value << 8));
|
2018-03-12 02:05:39 +01:00
|
|
|
|
}
|
|
|
|
|
}
|