diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-05-17 14:36:44 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-05-17 14:36:44 +0000 |
commit | 0bd134abd3f661ee35e07df979e90e6b4d499163 (patch) | |
tree | 5011c30f46c3a4e918b9af2d38c8e252f9836e80 /libavcodec/i386/dsputilenc_mmx.c | |
parent | e1a51a578ef3b74ff644e20197141f7c6b4d6f6c (diff) | |
download | ffmpeg-0bd134abd3f661ee35e07df979e90e6b4d499163.tar.gz |
Simplify vsad16_mmx2().
Originally committed as revision 13193 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/i386/dsputilenc_mmx.c')
-rw-r--r-- | libavcodec/i386/dsputilenc_mmx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/i386/dsputilenc_mmx.c b/libavcodec/i386/dsputilenc_mmx.c index 7d471bd2f8..e7893de487 100644 --- a/libavcodec/i386/dsputilenc_mmx.c +++ b/libavcodec/i386/dsputilenc_mmx.c @@ -823,16 +823,15 @@ static int vsad16_mmx2(void *v, uint8_t * pix1, uint8_t * pix2, int line_size, i "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" |