]> git.ipfire.org Git - thirdparty/glibc.git/commit
atomic: Use builtin atomics with USE_ATOMIC_COMPILER_BUILTINS
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Mon, 8 Sep 2025 17:46:29 +0000 (17:46 +0000)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Tue, 9 Sep 2025 13:53:54 +0000 (13:53 +0000)
commit2a035debbbd20402ada4543bf7e054f993ad0d69
tree9a189dd26c994c4170db2999dedd99d827b8afaa
parent5c522d7a585344a97d080665bceb9c5699179d57
atomic: Use builtin atomics with USE_ATOMIC_COMPILER_BUILTINS

Use builtin atomics for atomic_compare_and_exchange_* and
atomic_exchange_and_add if USE_ATOMIC_COMPILER_BUILTINS is enabled.
This allows removing target atomic-machine.h headers.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
include/atomic.h