Re: [FFmpeg-devel] [PATCH] x86: use new gcc atomic built-ins if available

2014-10-27 Thread Michael Niedermayer
On Sat, Oct 25, 2014 at 10:32:57PM -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 > > Signed-off-by: James Almer > --- > https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/_005f_005f

Re: [FFmpeg-devel] [PATCH] x86: use new gcc atomic built-ins if available

2014-10-26 Thread James Almer
On 26/10/14 5:34 AM, Reimar Döffinger wrote: > On 26.10.2014, at 02:32, 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 > > To me this sounds like "except for tsan, these new functio

Re: [FFmpeg-devel] [PATCH] x86: use new gcc atomic built-ins if available

2014-10-26 Thread Reimar Döffinger
On 26.10.2014, at 02:32, 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 To me this sounds like "except for tsan, these new functions are worse in every aspect, and that's with gcc 4.

[FFmpeg-devel] [PATCH] x86: use new gcc atomic built-ins if available

2014-10-25 Thread James Almer
__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 Signed-off-by: James Almer --- https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/_005f_005fatomic-Builtins.html This is an RFC for a couple reasons. The first is t