comparison x86/h264dsp_mmx.c @ 10937:afb9e56fbee9 libavcodec

Remove -2 -> -1 remapping, its not needed anymore as we must remap all references per LUT anyway.
author michael
date Tue, 19 Jan 2010 14:28:19 +0000
parents 54456267c77c
children 2a50b786b888
comparison
equal deleted inserted replaced
10936:b2ea6b0d17bf 10937:afb9e56fbee9
825 __asm__ volatile("pxor %%mm0, %%mm0 \n\t":); 825 __asm__ volatile("pxor %%mm0, %%mm0 \n\t":);
826 for( l = bidir; l >= 0; l-- ) { 826 for( l = bidir; l >= 0; l-- ) {
827 __asm__ volatile( 827 __asm__ volatile(
828 "movd %0, %%mm1 \n\t" 828 "movd %0, %%mm1 \n\t"
829 "punpckldq %1, %%mm1 \n\t" 829 "punpckldq %1, %%mm1 \n\t"
830 "movq %%mm1, %%mm2 \n\t"
831 "psrlw $7, %%mm2 \n\t"
832 "pand %%mm6, %%mm2 \n\t"
833 "por %%mm2, %%mm1 \n\t" // ref_cache with -2 mapped to -1
834 "punpckldq %%mm1, %%mm2 \n\t" 830 "punpckldq %%mm1, %%mm2 \n\t"
835 "pcmpeqb %%mm2, %%mm1 \n\t" 831 "pcmpeqb %%mm2, %%mm1 \n\t"
836 "paddb %%mm6, %%mm1 \n\t" 832 "paddb %%mm6, %%mm1 \n\t"
837 "punpckhbw %%mm7, %%mm1 \n\t" // ref[b] != ref[bn] 833 "punpckhbw %%mm7, %%mm1 \n\t" // ref[b] != ref[bn]
838 "por %%mm1, %%mm0 \n\t" 834 "por %%mm1, %%mm0 \n\t"