Simplify vsad_intra16_mmx2()
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 17 May 2008 14:33:01 +0000 (14:33 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 17 May 2008 14:33:01 +0000 (14:33 +0000)
Originally committed as revision 13189 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/i386/dsputilenc_mmx.c

index a14b39d..470c311 100644 (file)
@@ -692,12 +692,11 @@ static int vsad_intra16_mmx2(void *v, uint8_t * pix, uint8_t * dummy, int line_s
       "movq (%0),%%mm0\n"
       "movq 8(%0),%%mm1\n"
       "add %2,%0\n"
-      "subl $2, %%ecx\n"
-      SUM(%%mm0, %%mm1, %%mm4, %%mm5)
+      "jmp 2f\n"
       "1:\n"
 
       SUM(%%mm4, %%mm5, %%mm0, %%mm1)
-
+      "2:\n"
       SUM(%%mm0, %%mm1, %%mm4, %%mm5)
 
       "subl $2, %%ecx\n"