aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/x86/float_dsp.asm
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2016-01-08 12:08:56 -0300
committerJames Almer <jamrial@gmail.com>2016-01-08 16:14:32 -0300
commitdc79824deb6ac0ce236589c618744b33629201cd (patch)
treef8730f60184804213d90d204280ea69126af7e58 /libavutil/x86/float_dsp.asm
parent4ee38ed7f9038fb20ecef10811bc204603b4f6ee (diff)
downloadffmpeg-dc79824deb6ac0ce236589c618744b33629201cd.tar.gz
x86/float_dsp: zero extend offset from ff_scalarproduct_float_sse
Reviewed-by: Christophe Gisquet <christophe.gisquet@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/x86/float_dsp.asm')
-rw-r--r--libavutil/x86/float_dsp.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/x86/float_dsp.asm b/libavutil/x86/float_dsp.asm
index 743e1c1bf2..021ff03c87 100644
--- a/libavutil/x86/float_dsp.asm
+++ b/libavutil/x86/float_dsp.asm
@@ -332,10 +332,10 @@ VECTOR_FMUL_REVERSE
; float scalarproduct_float_sse(const float *v1, const float *v2, int len)
INIT_XMM sse
cglobal scalarproduct_float, 3,3,2, v1, v2, offset
+ shl offsetd, 2
+ add v1q, offsetq
+ add v2q, offsetq
neg offsetq
- shl offsetq, 2
- sub v1q, offsetq
- sub v2q, offsetq
xorps xmm0, xmm0
.loop:
movaps xmm1, [v1q+offsetq]