MCPcopy Create free account
hub / github.com/devkitPro/libctru / __ldrex

Function __ldrex

libctru/include/3ds/synchronization.h:62–67  ·  view source on GitHub ↗

* @brief Performs a ldrex operation. * @param addr Address to perform the operation on. * @return The resulting value. */

Source from the content-addressed store, hash-verified

60 * @return The resulting value.
61 */
62static inline s32 __ldrex(s32* addr)
63{
64 s32 val;
65 __asm__ __volatile__("ldrex %[val], %[addr]" : [val] "=r" (val) : [addr] "Q" (*addr));
66 return val;
67}
68
69/**
70 * @brief Performs a strex operation.

Callers 15

LightLock_InitFunction · 0.85
LightLock_LockFunction · 0.85
LightLock_TryLockFunction · 0.85
LightLock_UnlockFunction · 0.85
CondVar_BeginWaitFunction · 0.85
CondVar_EndWaitFunction · 0.85
LightEvent_SetStateFunction · 0.85
LightEvent_TryResetFunction · 0.85
LightSemaphore_AcquireFunction · 0.85
LightSemaphore_ReleaseFunction · 0.85
gspInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected