On 7/29/2016 8:52 AM, Anton Khirnov wrote:
> Adapted from the code by Rémi Denis-Courmont from VLC
> ---
>  compat/atomics/gcc/stdatomic.h | 175 
> +++++++++++++++++++++++++++++++++++++++++
>  configure                      |   6 ++
>  2 files changed, 181 insertions(+)
>  create mode 100644 compat/atomics/gcc/stdatomic.h
> 

Wouldn't it be better to use the new atomic builtins (gcc 4.7 and
newer) instead of the deprecated __sync ones? Unlike the latter 
they also support the memory order argument, so it's a much better
fit for these wrappers.

https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to