diff options
| author | Ac_K <Acoustik666@gmail.com> | 2018-03-12 02:05:39 +0100 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-03-11 22:05:39 -0300 |
| commit | 3aaa4717b6f7400bac862e589a1f345e70e78d56 (patch) | |
| tree | 37e219259b9564b092533564e21b0cc18036d28e /Ryujinx.Core/OsHle/Utilities | |
| parent | 28275a897696a707e222ee14dce20d4b8f65ed58 (diff) | |
Implement BSD Service (#54)
* Implement BSD Service
- Implementation of bsd:s & bsd:u.
- Adding an EndianSwap class.
* Corrections #1
* Correction2
Diffstat (limited to 'Ryujinx.Core/OsHle/Utilities')
| -rw-r--r-- | Ryujinx.Core/OsHle/Utilities/EndianSwap.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Ryujinx.Core/OsHle/Utilities/EndianSwap.cs b/Ryujinx.Core/OsHle/Utilities/EndianSwap.cs new file mode 100644 index 00000000..6758f1f2 --- /dev/null +++ b/Ryujinx.Core/OsHle/Utilities/EndianSwap.cs @@ -0,0 +1,7 @@ +namespace Ryujinx.Core.OsHle.Utilities +{ + static class EndianSwap + { + public static short Swap16(short Value) => (short)(((Value >> 8) & 0xff) | (Value << 8)); + } +} |
