[PATCH 5/5] x86: Define atomic_compare_and_exchange_{val,bool}_acq using __atomic_compare_exchange_n
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Wed Sep 10 21:00:26 GMT 2025
On 10/09/25 16:05, Wilco Dijkstra wrote:
> Hi Adhemerval,
>
>> Yeap, I am preparing a patchset to cleanup atomic.h/atomic-machine.h even more.
>
> Are you recreating [1] and [2], which removes all target atomics and the
> atomic-machine.h headers for almost all targets? Note there are another
> 5 patches besides these...
>
> [1] https://sourceware.org/pipermail/libc-alpha/2022-July/140817.html
> [2] https://sourceware.org/pipermail/libc-alpha/2022-July/141125.html
Yeah, I used this as base but I split by architecture, modeled over
C11 atomics (keeping the idiosyncrasies for some architectures), and
avoid changing the generic code (like pthread_spin_lock.c).
More information about the Libc-alpha
mailing list