changeset 6827:51c80db5905c libavcodec

Simplify vsad16_mmx2().
author michael
date Sat, 17 May 2008 14:36:44 +0000
parents 8e0c8ff0c781
children 0969192d5f8b
files i386/dsputilenc_mmx.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/i386/dsputilenc_mmx.c	Sat May 17 14:35:45 2008 +0000
+++ b/i386/dsputilenc_mmx.c	Sat May 17 14:36:44 2008 +0000
@@ -823,16 +823,15 @@
       "movq 8(%1),%%mm3\n"
       "add %3,%0\n"
       "add %3,%1\n"
-      "subl $2, %%ecx\n"
       "psubb %%mm2, %%mm0\n"
       "psubb %%mm3, %%mm1\n"
       "pxor %%mm7, %%mm0\n"
       "pxor %%mm7, %%mm1\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"