Quoting Wan-Teh Chang (2016-12-01 20:11:33)
> From: James Almer <[email protected]>
> 
> __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.
> 
> This patch merges FFmpeg commit faa9d2982969c999ab0e443a226eff116f7f8e4b.
> 
> Signed-off-by: Wan-Teh Chang <[email protected]>
> ---
>  compat/atomics/gcc/stdatomic.h | 22 ++++++++++++++++++++++
>  configure                      |  4 +++-
>  2 files changed, 25 insertions(+), 1 deletion(-)

I don't quite see what the point of this is. You want to add more #ifdef
mess to slightly optimize two (4.7 and 4.8, since 4.9 already supports
stdatomic.h) old, obsolete and unmaintained gcc versions. Why even
bother?

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to