aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/handle_table.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-11-21 18:30:58 -0500
committerLioncash <mathew1800@gmail.com>2018-11-21 18:31:01 -0500
commitf1a863e58348402dea31731aec72f5a420173e3c (patch)
tree53941cfab7535f6fa7df24ee777d086ce4f495ec /src/core/hle/kernel/handle_table.cpp
parent6fac9e5b31250adf66aa5ad2bf8753c1f45f9843 (diff)
kernel/handle_table: Move private static functions into the cpp file
These don't depend on class state, and are effectively implementation details, so they can go into the cpp file .
Diffstat (limited to 'src/core/hle/kernel/handle_table.cpp')
-rw-r--r--src/core/hle/kernel/handle_table.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/hle/kernel/handle_table.cpp b/src/core/hle/kernel/handle_table.cpp
index 9f2b996c4e..1bf79b6920 100644
--- a/src/core/hle/kernel/handle_table.cpp
+++ b/src/core/hle/kernel/handle_table.cpp
@@ -12,6 +12,15 @@
#include "core/hle/kernel/thread.h"
namespace Kernel {
+namespace {
+constexpr u16 GetSlot(Handle handle) {
+ return handle >> 15;
+}
+
+constexpr u16 GetGeneration(Handle handle) {
+ return handle & 0x7FFF;
+}
+} // Anonymous namespace
HandleTable::HandleTable() {
next_generation = 1;