[FFmpeg-devel] [PATCH] Fix compilation on clang 2.8, which doesn't support 3dnow inline asm.

Måns Rullgård mans
Fri Feb 11 18:22:40 CET 2011


"Ronald S. Bultje" <rsbultje at gmail.com> writes:

> ---
>  libavcodec/x86/cavsdsp_mmx.c    |    4 ++++
>  libavcodec/x86/dsputil_mmx.c    |   39 ++++++++++++++++++++++++++++++++-------
>  libavcodec/x86/dsputilenc_mmx.c |    4 ++++
>  libavcodec/x86/fmtconvert_mmx.c |   10 ++++++++++
>  libavcodec/x86/h264_qpel_mmx.c  |    2 ++
>  libswscale/rgb2rgb.c            |    4 ++++
>  6 files changed, 56 insertions(+), 7 deletions(-)
>
> diff --git a/libavcodec/x86/cavsdsp_mmx.c b/libavcodec/x86/cavsdsp_mmx.c
> index 0f5fdaa..e17d18c 100644
> --- a/libavcodec/x86/cavsdsp_mmx.c
> +++ b/libavcodec/x86/cavsdsp_mmx.c
> @@ -425,8 +425,10 @@ static void ff_ ## OPNAME ## cavs_qpel ## SIZE ## _mc03_ ## MMX(uint8_t *dst, ui
>  "pavgb " #temp ", " #a "          \n\t"\
>  "mov" #size " " #a ", " #b "      \n\t"
>
> +#if HAVE_AMD3DNOW

I guess we should also check for 3dnow support in configure.  There are
checks for ssse3 and mmx2 already.  Extrapolate from those.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list