[FFmpeg-devel] [PATCH] lavu/atomic: add support for the new memory model aware gcc built-ins

James Almer jamrial at gmail.com
Wed Oct 29 18:11:00 CET 2014


On 28/10/14 11:16 PM, Michael Niedermayer wrote:
> On Mon, Oct 27, 2014 at 11:25:01PM -0300, James Almer wrote:
>> __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.
>>
>> Signed-off-by: James Almer <jamrial at gmail.com>
>> ---
>>  configure              |  4 +++-
>>  libavutil/atomic_gcc.h | 17 +++++++++++++++++
>>  2 files changed, 20 insertions(+), 1 deletion(-)
> 
> LGTM

Pushed, thanks.



More information about the ffmpeg-devel mailing list