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 .
This commit is contained in:
Lioncash
2018-11-21 18:30:58 -05:00
parent 568bcbc29d
commit 0e35f1bb18
2 changed files with 9 additions and 7 deletions

View File

@ -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;