[FFmpeg-devel] [PATCH] ac3dsp: Change punpckhqdq to movhlps in ac3_max_msb_abs_int16().

Ronald S. Bultje rsbultje
Wed Feb 16 19:54:13 CET 2011


Hi,

2011/2/16 Justin Ruggles <justin.ruggles at gmail.com>:
> ---
> There really isn't any measurable speed difference, mostly because this is outside the loop, but it makes the intention clearer I think.
>
> ?libavcodec/x86/ac3dsp.asm | ? ?2 +-
> ?1 files changed, 1 insertions(+), 1 deletions(-)
[..]
> @@ -111,7 +111,7 @@ cglobal ac3_max_msb_abs_int16_%1, 2,2,5, src, len
>  %endif
>  %ifidn mmsize, 16
>      mova        m0, m2
> -    punpckhqdq  m0, m0
> +    movhlps     m0, m0
>      por         m2, m0

He meant remove the mova also.

Ronald



More information about the ffmpeg-devel mailing list