Re: [libav-devel] [PATCH 3/3] x86: videodsp: Small speedups in ff_emulated_edge_mc x86 SIMD.

2014-01-30 Thread Diego Biurrun
On Thu, Jan 30, 2014 at 03:43:32PM +0100, Janne Grunau wrote: > --- a/libavcodec/x86/videodsp.asm > +++ b/libavcodec/x86/videodsp.asm > @@ -344,10 +344,6 @@ VERTICAL_EXTEND 16, 22 > movzx vald, byte %2 > imul vald, 0x01010101 > %if %1 >= 8 > @@ -356,13 +352,15 @@ VERTI

[libav-devel] [PATCH 3/3] x86: videodsp: Small speedups in ff_emulated_edge_mc x86 SIMD.

2014-01-30 Thread Janne Grunau
From: "Ronald S. Bultje" Do not use word-size multiplications if size == 2, and if we're using SIMD instructions (size >= 8), complete leftover 4byte sets using movd, not mov. Both of these changes lead to minor speedups. Signed-off-by: Janne Grunau --- libavcodec/x86/videodsp.asm | 34 +++