[FFmpeg-cvslog] x86/sbrdsp: remove unnecessary sign extend instruction in apply_noise_main

James Almer git at videolan.org
Wed Jul 5 05:37:34 EEST 2017


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Jul  4 23:35:29 2017 -0300| [24bb7db4037876c5722b0eecf7412502e7225634] | committer: James Almer

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 <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=24bb7db4037876c5722b0eecf7412502e7225634
---

 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]



More information about the ffmpeg-cvslog mailing list