On Wed, Apr 27, 2016 at 7:37 AM, Alexandra Hájková
<[email protected]> wrote:
> ---
>  libavutil/attributes.h | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/libavutil/attributes.h b/libavutil/attributes.h
> index d7f2bb5..1a8d738 100644
> --- a/libavutil/attributes.h
> +++ b/libavutil/attributes.h
> @@ -123,4 +123,10 @@
>  #    define av_noreturn
>  #endif
>
> +#if AV_GCC_VERSION_AT_LEAST(4,3)
> +#   define av_unlikely(x) __builtin_expect((x) != 0, 0)
> +#else
> +#   define av_unlikely(x) x
> +#endif
> +
>  #endif /* AVUTIL_ATTRIBUTES_H */
> --

Needs a version bump.
-- 
Vittorio
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to