mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-24 19:54:22 -04:00
kern/util: update structure layouts to match Nintendo (saves 0x10 per KThread/KSession)
This commit is contained in:
parent
7805a3624e
commit
26c02e2019
6 changed files with 15 additions and 12 deletions
|
@ -53,6 +53,7 @@ namespace ams::freebsd {
|
|||
RB_RED = 1,
|
||||
};
|
||||
|
||||
#pragma pack(push, 4)
|
||||
template<typename T>
|
||||
class RBEntry {
|
||||
private:
|
||||
|
@ -82,6 +83,7 @@ namespace ams::freebsd {
|
|||
|
||||
constexpr ALWAYS_INLINE void SetColor(RBColor c) { m_rbe_color = c; }
|
||||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
template<typename T> struct CheckRBEntry { static constexpr bool value = false; };
|
||||
template<typename T> struct CheckRBEntry<RBEntry<T>> { static constexpr bool value = true; };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue