From b2045c44a94db4df97fdd753ea738fcf578d65d8 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Mon, 2 Dec 2013 08:03:04 -0500 Subject: [PATCH] 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. --- libavcodec/x86/vp9itxfm.asm | 6 +++--- 1 file 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