aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/vp9itxfm.asm
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2013-12-02 08:03:04 -0500
committerRonald S. Bultje <rsbultje@gmail.com>2013-12-07 12:39:36 -0500
commitb2045c44a94db4df97fdd753ea738fcf578d65d8 (patch)
treeb9df1db2c44741c0d01dceca32520d3a47381d76 /libavcodec/x86/vp9itxfm.asm
parentf9a0d4c6e00baeccb4bc18cd5ea1c7325d052918 (diff)
downloadffmpeg-b2045c44a94db4df97fdd753ea738fcf578d65d8.tar.gz
vp9: split pre-load of 11585x2 out of 1d idct macro.
This allows us to load it only once, instead of twice, in this function.
Diffstat (limited to 'libavcodec/x86/vp9itxfm.asm')
-rw-r--r--libavcodec/x86/vp9itxfm.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/x86/vp9itxfm.asm b/libavcodec/x86/vp9itxfm.asm
index 1b272dd5a5..c382bdb4a9 100644
--- a/libavcodec/x86/vp9itxfm.asm
+++ b/libavcodec/x86/vp9itxfm.asm
@@ -91,9 +91,8 @@ SECTION .text
%macro VP9_IDCT4_1D 0
SUMSUB_BA w, 2, 0, 4 ; m2=IN(0)+IN(2) m0=IN(0)-IN(2)
- mova m4, [pw_11585x2]
- pmulhrsw m2, m4 ; m2=t0
- pmulhrsw m0, m4 ; m0=t1
+ pmulhrsw m2, m6 ; m2=t0
+ pmulhrsw m0, m6 ; m0=t1
VP9_UNPACK_MULSUB_2W_4X 1, 3, 15137, 6270, m7, 4, 5 ; m1=t2, m3=t3
VP9_IDCT4_1D_FINALIZE
%endmacro
@@ -162,6 +161,7 @@ cglobal vp9_idct_idct_4x4_add, 4,4,0, dst, stride, block, eob
mova m1, [blockq+ 8]
mova m2, [blockq+16]
mova m3, [blockq+24]
+ mova m6, [pw_11585x2]
mova m7, [pd_8192] ; rounding
VP9_IDCT4_1D
TRANSPOSE4x4W 0, 1, 2, 3, 4