mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-02-06 07:44:29 +01:00
Fix Apple clang
This commit is contained in:
parent
6f5bcf12c6
commit
93c72822a3
|
|
@ -442,7 +442,8 @@ namespace utils
|
|||
__asm__ volatile("lock orl $0, 0(%0)" :: "r" (ptr));
|
||||
#elif defined(ARCH_ARM64)
|
||||
u32 value = 0;
|
||||
__asm__ volatile ("ldset %w0, %w0, %1" : "+r"(value), "=Q"(*ptr) : "r"(value));
|
||||
u32* u32_ptr = static_cast<u32*>(ptr);
|
||||
__asm__ volatile("ldset %w0, %w0, %1" : "+r"(value), "=Q"(*u32_ptr) : "r"(value));
|
||||
#else
|
||||
*static_cast<atomic_t<u32> *>(ptr) += 0;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue