diff options
Diffstat (limited to 'Ryujinx.HLE/HOS/Kernel/Process/CapabilityExtensions.cs')
-rw-r--r-- | Ryujinx.HLE/HOS/Kernel/Process/CapabilityExtensions.cs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/Ryujinx.HLE/HOS/Kernel/Process/CapabilityExtensions.cs b/Ryujinx.HLE/HOS/Kernel/Process/CapabilityExtensions.cs deleted file mode 100644 index 66d56fe3..00000000 --- a/Ryujinx.HLE/HOS/Kernel/Process/CapabilityExtensions.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System.Numerics; - -namespace Ryujinx.HLE.HOS.Kernel.Process -{ - static class CapabilityExtensions - { - public static CapabilityType GetCapabilityType(this uint cap) - { - return (CapabilityType)(((cap + 1) & ~cap) - 1); - } - - public static uint GetFlag(this CapabilityType type) - { - return (uint)type + 1; - } - - public static uint GetId(this CapabilityType type) - { - return (uint)BitOperations.TrailingZeroCount(type.GetFlag()); - } - } -}
\ No newline at end of file |