[FFmpeg-cvslog] butterflies_float: replace 2 lea by 2 add
Michael Niedermayer
git at videolan.org
Wed Apr 17 00:11:55 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 16 23:52:24 2013 +0200| [92218aad007ffc36bb139fe8bd6d5b1d75721017] | committer: Michael Niedermayer
butterflies_float: replace 2 lea by 2 add
adds are simpler instructions and should be faster or equally fast
on all cpus
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=92218aad007ffc36bb139fe8bd6d5b1d75721017
---
libavutil/x86/float_dsp.asm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavutil/x86/float_dsp.asm b/libavutil/x86/float_dsp.asm
index f0310ef..1c28058 100644
--- a/libavutil/x86/float_dsp.asm
+++ b/libavutil/x86/float_dsp.asm
@@ -272,8 +272,8 @@ cglobal butterflies_float, 3,3,3, src0, src1, len
test lenq, lenq
jz .end
shl lenq, 2
- lea src0q, [src0q + lenq]
- lea src1q, [src1q + lenq]
+ add src0q, lenq
+ add src1q, lenq
neg lenq
.loop:
mova m0, [src0q + lenq]
More information about the ffmpeg-cvslog
mailing list