__sync built-ins are considered legacy and will be deprecated. These new memory model aware built-ins have been available since GCC 4.7.0
Use them by default when available except for __atomic_compare_exchange_n(), which is slower, and is instead implemented as a fallback for when and if gcc removes the legacy __sync built-ins.
faa9d29 lavu/atomic: add support for the new memory model aware gcc built-ins
configure | 4 +++-
libavutil/atomic_gcc.h | 17 +++++++++++++++++
2 files changed, 20 insertions(+), 1 deletion(-)