From 1be01cb3fb9efec44be81714ae25bc272fe6c6cf Mon Sep 17 00:00:00 2001 From: Fiona Glaser Date: Fri, 3 Jul 2009 02:33:44 -0700 Subject: [PATCH] Slightly faster dequant_flat assembly Eliminate some redundant shifts. --- common/x86/quant-a.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/x86/quant-a.asm b/common/x86/quant-a.asm index 0cb45cb2..a9e4ad3a 100644 --- a/common/x86/quant-a.asm +++ b/common/x86/quant-a.asm @@ -305,6 +305,7 @@ QUANT_AC x264_quant_8x8_sse4, 8 %macro DEQUANT16_FLAT 2-5 mova m0, %1 + psllw m0, m4 %assign i %0-2 %rep %0-1 %if i @@ -313,7 +314,6 @@ QUANT_AC x264_quant_8x8_sse4, 8 %else pmullw m0, [r0+%2] %endif - psllw m %+ i, m4 mova [r0+%2], m %+ i %assign i i-1 %rotate 1 -- 2.40.0