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

Function __ldrexh

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

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

Source from the content-addressed store, hash-verified

85 * @return The resulting value.
86 */
87static inline u16 __ldrexh(u16* addr)
88{
89 u16 val;
90 __asm__ __volatile__("ldrexh %[val], %[addr]" : [val] "=r" (val) : [addr] "Q" (*addr));
91 return val;
92}
93
94/**
95 * @brief Performs a strexh operation.

Callers 1

LightSemaphore_AcquireFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected