Revision c4f2b6dc

View differences:

libavcodec/x86/h264dsp_mmx.c
834 834
                        "por %%mm1, %%mm0 \n\t"
835 835

  
836 836
                        "movq %2, %%mm1 \n\t"
837
                        "movq %3, %%mm2 \n\t"
838
                        "psubw %4, %%mm1 \n\t"
839
                        "psubw %5, %%mm2 \n\t"
837
                        "movq 8+1*%2, %%mm2 \n\t"
838
                        "psubw %3, %%mm1 \n\t"
839
                        "psubw 8+1*%3, %%mm2 \n\t"
840 840
                        "packsswb %%mm2, %%mm1 \n\t"
841 841
                        "paddb %%mm5, %%mm1 \n\t"
842 842
                        "pminub %%mm4, %%mm1 \n\t"
......
845 845
                        ::"m"(ref[l][b_idx]),
846 846
                          "m"(ref[l][b_idx+d_idx]),
847 847
                          "m"(mv[l][b_idx][0]),
848
                          "m"(mv[l][b_idx+2][0]),
849
                          "m"(mv[l][b_idx+d_idx][0]),
850
                          "m"(mv[l][b_idx+d_idx+2][0])
848
                          "m"(mv[l][b_idx+d_idx][0])
851 849
                    );
852 850
                }
853 851
                if(bidir==1){
......
863 861
                        "por %%mm1, %%mm3 \n\t"
864 862

  
865 863
                        "movq %2, %%mm1 \n\t"
866
                        "movq %3, %%mm2 \n\t"
867
                        "psubw %4, %%mm1 \n\t"
868
                        "psubw %5, %%mm2 \n\t"
864
                        "movq 8+1*%2, %%mm2 \n\t"
865
                        "psubw %3, %%mm1 \n\t"
866
                        "psubw 8+1*%3, %%mm2 \n\t"
869 867
                        "packsswb %%mm2, %%mm1 \n\t"
870 868
                        "paddb %%mm5, %%mm1 \n\t"
871 869
                        "pminub %%mm4, %%mm1 \n\t"
......
874 872
                        ::"m"(ref[l][b_idx]),
875 873
                          "m"(ref[1-l][b_idx+d_idx]),
876 874
                          "m"(mv[l][b_idx][0]),
877
                          "m"(mv[l][b_idx+2][0]),
878
                          "m"(mv[1-l][b_idx+d_idx][0]),
879
                          "m"(mv[1-l][b_idx+d_idx+2][0])
875
                          "m"(mv[1-l][b_idx+d_idx][0])
880 876
                    );
881 877
                    }
882 878
                    __asm__ volatile(

Also available in: Unified diff