summaryrefslogtreecommitdiff
path: root/libavutil/atomic_gcc.h
Commit message (Collapse)AuthorAge
* It has been replaced by C11 stdatomic.h and is now unused.Anton Khirnov2018-01-05
| | | | | (cherry picked from commit 5cc0057f4910c8c72421b812c8f337ef6c43696c) Signed-off-by: James Almer <jamrial@gmail.com>
* Revert "lavu/atomic: add support for the new memory model aware gcc built-ins"James Almer2017-03-08
| | | | | | | | | | | This reverts commit faa9d2982969c999ab0e443a226eff116f7f8e4b. This change became superfluous when support for C11 atomics was introduced. Reverting it will make the removal of this implementation in an upcoming merge conflict free. Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* lavu/atomic: add support for the new memory model aware gcc built-insJames Almer2014-10-29
| | | | | | | | | | | | __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. Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
* Merge commit '6327c10702922eabcb1c6170abd3f03d23ce4c51'Michael Niedermayer2013-03-12
|\ | | | | | | | | | | | | | | | | * commit '6327c10702922eabcb1c6170abd3f03d23ce4c51': atomic: fix CAS with armcc. png: use av_mallocz_array() for the zlib zalloc function libmp3lame: use the correct remaining buffer size when flushing Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * atomic: fix CAS with armcc.Anton Khirnov2013-03-09
| | | | | | | | | | | | On the current code, armcc will fail with: "libavutil/atomic_gcc.h", line 52: Error: #2771: first argument must be a pointer to integer or enumeration type
| * atomic: Add include guards to the implementation headersMartin Storsjö2013-03-08
| | | | | | | | | | | | | | | | This makes them pass standalone compilation tests. Previously, they included atomic.h which included themselves again, leading to double definitions. Signed-off-by: Martin Storsjö <martin@martin.st>
* | atomic: Add include guards to the implementation headersMartin Storsjö2013-03-08
| | | | | | | | | | | | | | | | This makes them pass standalone compilation tests. Previously, they included atomic.h which included themselves again, leading to double definitions. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '65f1d45dcc71186ede72fff950996099d23359bd'Michael Niedermayer2013-03-08
|/ | | | | | | | | | * commit '65f1d45dcc71186ede72fff950996099d23359bd': lavu: add support for atomic operations. Conflicts: configure Merged-by: Michael Niedermayer <michaelni@gmx.at>
* lavu: add support for atomic operations.Ronald S. Bultje2013-03-08
These could be used for reference counting, or for keeping track of decoding progress in references in multithreaded decoders. Support is provided by gcc/msvc/suncc intrinsics, with a fallback using pthread mutexes. Signed-off-by: Anton Khirnov <anton@khirnov.net>