diff options
author | Martin Storsjö <martin@martin.st> | 2013-03-08 12:32:38 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-03-08 14:55:08 +0200 |
commit | e460aa3282962aa3e89f19e207ec13b501187949 (patch) | |
tree | a15c4bd09b2609b086ed9fd6e74127af52e53978 /libavutil/atomic.h | |
parent | f1af3d19a7924c6f5963ee15a83bad26d2262dc3 (diff) | |
download | ffmpeg-e460aa3282962aa3e89f19e207ec13b501187949.tar.gz |
atomic: Check for __sync_val_compare_and_swap instead of __sync_synchronize
Not all gcc configurations have an implementation of all the atomic
operations, and some gcc configurations have some atomic builtins
implemented but not all.
Thus check for the most essential function, whose presence should
indicate that all others are present as well, since it can be used
to implement all the other ones.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil/atomic.h')
-rw-r--r-- | libavutil/atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/atomic.h b/libavutil/atomic.h index dad93bd1aa..577e471462 100644 --- a/libavutil/atomic.h +++ b/libavutil/atomic.h @@ -25,7 +25,7 @@ #if HAVE_MEMORYBARRIER #include "atomic_win32.h" -#elif HAVE_SYNC_SYNCHRONIZE +#elif HAVE_SYNC_VAL_COMPARE_AND_SWAP #include "atomic_gcc.h" #elif HAVE_MACHINE_RW_BARRIER #include "atomic_suncc.h" |