comparison x86/vp8dsp.asm @ 12211:5fbc541988f7 libavcodec

Eliminate one instruction in VP8 dc_add_sse4
author darkshikari
date Wed, 21 Jul 2010 22:41:37 +0000
parents baf13deed97e
children 657d353cd515
comparison
equal deleted inserted replaced
12210:baf13deed97e 12211:5fbc541988f7
944 cglobal vp8_idct_dc_add_sse4, 3, 3, 6 944 cglobal vp8_idct_dc_add_sse4, 3, 3, 6
945 ; load data 945 ; load data
946 movd xmm0, [r1] 946 movd xmm0, [r1]
947 lea r1, [r0+r2*2] 947 lea r1, [r0+r2*2]
948 pxor xmm1, xmm1 948 pxor xmm1, xmm1
949 movq xmm2, [pw_4]
950 949
951 ; calculate DC 950 ; calculate DC
952 paddw xmm0, xmm2 951 paddw xmm0, [pw_4]
953 movd xmm2, [r0] 952 movd xmm2, [r0]
954 movd xmm3, [r0+r2] 953 movd xmm3, [r0+r2]
955 movd xmm4, [r1] 954 movd xmm4, [r1]
956 movd xmm5, [r1+r2] 955 movd xmm5, [r1+r2]
957 psraw xmm0, 3 956 psraw xmm0, 3