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

Function __strexh

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

* @brief Performs a strexh operation. * @param addr Address to perform the operation on. * @param val Value to store. * @return Whether the operation was successful. */

Source from the content-addressed store, hash-verified

98 * @return Whether the operation was successful.
99 */
100static inline bool __strexh(u16* addr, u16 val)
101{
102 bool res;
103 __asm__ __volatile__("strexh %[res], %[val], %[addr]" : [res] "=&r" (res) : [val] "r" (val), [addr] "Q" (*addr));
104 return res;
105}
106
107/**
108 * @brief Performs a ldrexb operation.

Callers 1

LightSemaphore_AcquireFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected