[FFmpeg-devel] [PATCH 3/3] x86/vp9lpf: use fewer instructions in SPLATB_MIX

Clément Bœsch u at pkh.me
Mon Aug 4 19:03:07 CEST 2014


On Sun, Aug 03, 2014 at 11:53:40PM -0300, James Almer wrote:
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
>  libavcodec/x86/vp9lpf.asm | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/libavcodec/x86/vp9lpf.asm b/libavcodec/x86/vp9lpf.asm
> index c5db0ca..def7d5a 100644
> --- a/libavcodec/x86/vp9lpf.asm
> +++ b/libavcodec/x86/vp9lpf.asm
> @@ -302,9 +302,8 @@ SECTION .text
>      pshufb     %1, %2
>  %else
>      punpcklbw  %1, %1
> -    punpcklqdq %1, %1
> -    pshuflw    %1, %1, 0
> -    pshufhw    %1, %1, 0x55
> +    punpcklwd  %1, %1
> +    punpckldq  %1, %1

IIRC I based this on what I found in x86util.asm:SPLATW; would that apply
there as well?

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140804/a81827a3/attachment.asc>


More information about the ffmpeg-devel mailing list