From 24bb7db4037876c5722b0eecf7412502e7225634 Mon Sep 17 00:00:00 2001 From: James Almer Date: Tue, 4 Jul 2017 23:35:29 -0300 Subject: [PATCH] x86/sbrdsp: remove unnecessary sign extend instruction in apply_noise_main noise needs to be zero extended and it can be done implicitly as a side effect in a subsequent instruction. Signed-off-by: James Almer --- libavcodec/x86/sbrdsp.asm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/x86/sbrdsp.asm b/libavcodec/x86/sbrdsp.asm index 62bbe512ec..51680f048b 100644 --- a/libavcodec/x86/sbrdsp.asm +++ b/libavcodec/x86/sbrdsp.asm @@ -382,8 +382,7 @@ apply_noise_main: %else DEFINE_ARGS Y, s_m, q_filt, noise, kx, count %endif - movsxdifnidn noiseq, noised - dec noiseq + dec noised shl countd, 2 %ifdef PIC lea NOISE_TABLE, [sbr_noise_table]