]> git.lttng.org Git - userspace-rcu.git/commit
arm: Use atomic builtins for xchg if supported
authorOlivier Dion <odion@efficios.com>
Mon, 2 Dec 2024 15:22:01 +0000 (10:22 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 2 Dec 2024 18:18:09 +0000 (13:18 -0500)
commitca62305c8956ae7c953c5f99be356a813c60265a
tree22b2b007b08a47539df84918e74d81e7852ec60b
parent89280d020bf064d1055c360fb9974f128051043f
arm: Use atomic builtins for xchg if supported

If the toolchain supports the C11 memory model, then implement
`uatomic_xchg_mo' with `__atomic_exchange_n' instead of
`__sync_lock_test_and_set'.  This reduces the number of memory barriers
except for the default memory order FULL_FENCE.

Change-Id: I2261f93134071e37e152a23bb78b21332844429b
Signed-off-by: Olivier Dion <odion@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/urcu/uatomic/arm.h
This page took 0.029038 seconds and 4 git commands to generate.