[FFmpeg-cvslog] vp9/x86: simplify a few mc inits.
Clément Bœsch
git at videolan.org
Thu Jan 16 07:59:07 CET 2014
ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Wed Jan 15 22:35:43 2014 +0100| [9cc8fa63ddba91f02ddb2b74e97eb911a14cc539] | committer: Clément Bœsch
vp9/x86: simplify a few mc inits.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9cc8fa63ddba91f02ddb2b74e97eb911a14cc539
---
libavcodec/x86/vp9mc.asm | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/libavcodec/x86/vp9mc.asm b/libavcodec/x86/vp9mc.asm
index a7568f3..488ad70 100644
--- a/libavcodec/x86/vp9mc.asm
+++ b/libavcodec/x86/vp9mc.asm
@@ -210,13 +210,11 @@ cglobal %1_8tap_1d_v_ %+ %%px, 4, 7, 11, dst, dstride, src, sstride, filtery, sr
mov filteryq, r5mp
%define hd r4mp
%endif
- sub srcq, sstrideq
- lea sstride3q, [sstrideq*3]
- sub srcq, sstrideq
mova m6, [pw_256]
- sub srcq, sstrideq
+ lea sstride3q, [sstrideq*3]
+ lea src4q, [srcq+sstrideq]
+ sub srcq, sstride3q
mova m7, [filteryq+ 0]
- lea src4q, [srcq+sstrideq*4]
%if ARCH_X86_64 && mmsize > 8
mova m8, [filteryq+16]
mova m9, [filteryq+32]
@@ -281,13 +279,11 @@ filter_v_fn avg
%macro filter_vx2_fn 1
%assign %%px mmsize
cglobal %1_8tap_1d_v_ %+ %%px, 6, 8, 14, dst, dstride, src, sstride, h, filtery, src4, sstride3
- sub srcq, sstrideq
- lea sstride3q, [sstrideq*3]
- sub srcq, sstrideq
mova m13, [pw_256]
- sub srcq, sstrideq
+ lea sstride3q, [sstrideq*3]
+ lea src4q, [srcq+sstrideq]
+ sub srcq, sstride3q
mova m8, [filteryq+ 0]
- lea src4q, [srcq+sstrideq*4]
mova m9, [filteryq+16]
mova m10, [filteryq+32]
mova m11, [filteryq+48]
More information about the ffmpeg-cvslog
mailing list