Skip to content

Commit

Permalink
avoid wrong assembly code for threaded mode on ARMv5 and earlier (#819)
Browse files Browse the repository at this point in the history
  • Loading branch information
mflatt committed Mar 24, 2024
1 parent 20da46f commit 7749410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ FORCEINLINE int CAS_STORE_RELEASE(volatile void *addr, void *old_val, void *new_
: "cc", "memory", "x12", "x7");
return ret;
}
#elif defined(__arm__)
#elif defined(__arm__) && ((arm_isa_version >= 6) || (__ARM_ARCH >= 6))
FORCEINLINE int S_cas_any_fence(int load_acquire, volatile void *addr, void *old_val, void *new_val) {
int ret;
if (load_acquire)
Expand Down

0 comments on commit 7749410

Please sign in to comment.