[FFmpeg-devel] [PATCH] lavu/atomic: add support for the new memory model aware gcc built-ins
Michael Niedermayer
michaelni at gmx.at
Wed Oct 29 03:16:57 CET 2014
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
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I have often repented speaking, but never of holding my tongue.
-- Xenocrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141029/3594f7df/attachment.asc>
More information about the ffmpeg-devel
mailing list