mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-31 23:08:22 -04:00
kern: codegen tweaks, now that we're no longer -Os
This commit is contained in:
parent
1ca2f61527
commit
383fc2cc99
10 changed files with 77 additions and 70 deletions
|
@ -56,8 +56,8 @@ namespace ams::kern {
|
|||
}
|
||||
}
|
||||
|
||||
bool LockSlowPath(uintptr_t owner, uintptr_t cur_thread);
|
||||
void UnlockSlowPath(uintptr_t cur_thread);
|
||||
NOINLINE bool LockSlowPath(uintptr_t owner, uintptr_t cur_thread);
|
||||
NOINLINE void UnlockSlowPath(uintptr_t cur_thread);
|
||||
|
||||
ALWAYS_INLINE bool IsLocked() const { return m_tag.Load() != 0; }
|
||||
ALWAYS_INLINE bool IsLockedByCurrentThread() const { return (m_tag.Load() | 0x1ul) == (reinterpret_cast<uintptr_t>(GetCurrentThreadPointer()) | 0x1ul); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue