mpv/compat
wm4 3238cd3dac atomics: some corrections to __sync builtins usage
We don't need to combine __sync_add_and_fetch with a memory barrier,
since these intrinsics are documented as using a full barrier already.

Use __sync_fetch_and_add instead of __sync_add_and_fetch; this gives
atomic_fetch_add() the correct return value (although we don't use it).

Use __sync_fetch_and_add to emulate atomic_load(). This should enforce
the full barrier semantics better. (This trick is stolen from the
FreeBSD based stdatomic.h emulation.)
2014-05-28 22:44:43 +02:00
..
atomics.h atomics: some corrections to __sync builtins usage 2014-05-28 22:44:43 +02:00
compiler.h
libav.h compat/libav: remove unneeded things 2014-05-18 21:20:40 +02:00
mpbswap.h