mirror of
git://git.musl-libc.org/musl
synced 2025-01-20 13:50:52 +00:00
513c043694
previously powerpc had a_cas defined in terms of its native ll/sc style operations, but all other atomics were defined in terms of a_cas. instead define a_ll and a_sc so the compiler can generate optimized versions of all the atomic ops and perform better inlining of a_cas. extracting the result of the sc (stwcx.) instruction is rather awkward because it's natively stored in a condition flag, which is not representable in inline asm. but even with this limitation the new code still seems significantly better. |
||
---|---|---|
.. | ||
bits | ||
atomic_arch.h | ||
crt_arch.h | ||
pthread_arch.h | ||
reloc.h | ||
syscall_arch.h |