[FFmpeg-devel] [PATCH] flac/x86: add ff_flac_lpc_32_xop()
Loren Merritt
lorenm at u.washington.edu
Fri Feb 7 03:17:08 CET 2014
On Thu, 6 Feb 2014, James Almer wrote:
> diff --git a/libavcodec/x86/flacdsp.asm b/libavcodec/x86/flacdsp.asm
> index e28f905..efd80be 100644
> --- a/libavcodec/x86/flacdsp.asm
> +++ b/libavcodec/x86/flacdsp.asm
> @@ -24,7 +24,17 @@
>
> SECTION .text
>
> -INIT_XMM sse4
> +%macro pmacsdql 3
> +%if cpuflag(xop)
> + vpmacsdql %1, %2, %3, %1
> +%else
> + pmuldq %2, %3
> + paddq %1, %2
> +%endif
> +%endmacro
This should go in x86inc.asm, with the other FMA_INSTR
--Loren Merritt
More information about the ffmpeg-devel
mailing list