1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-17 04:15:13 +00:00
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 Add MP_NORETURN and replace av_noreturn uses 2012-11-12 20:10:23 +01:00
libav.h compat/libav: remove unneeded things 2014-05-18 21:20:40 +02:00
mpbswap.h