diff options
author | Michael Jennings <mej@kainx.org> | 2000-06-12 20:16:43 +0000 |
---|---|---|
committer | Michael Jennings <mej@kainx.org> | 2000-06-12 20:16:43 +0000 |
commit | 1130cf37f87dedda1cedbbd7df9c856c26b4df9a (patch) | |
tree | dd70bd1d87263797a98aa040cbe425d70a887972 /src/mmx_cmod.S | |
parent | 63475cb86cb6c33c9c9fd68bdcafa394d38a75cf (diff) | |
download | eterm-1130cf37f87dedda1cedbbd7df9c856c26b4df9a.tar.gz |
Mon Jun 12 13:33:39 PDT 2000 Michael Jennings <mej@eterm.org>
Fixes from Willem Monsuwe <willem@stack.nl> to his MMX routines.
SVN revision: 2778
Diffstat (limited to 'src/mmx_cmod.S')
-rw-r--r-- | src/mmx_cmod.S | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/mmx_cmod.S b/src/mmx_cmod.S index f875062..7acddb8 100644 --- a/src/mmx_cmod.S +++ b/src/mmx_cmod.S @@ -129,7 +129,7 @@ shade_ximage_15_mmx: addl $4, %ecx js 2b - jz 4f + jmp 4f 3: movw (%esi, %ecx, 2), %ax movd %eax, %mm0 @@ -157,9 +157,10 @@ shade_ximage_15_mmx: movw %ax, (%esi, %ecx, 2) incl %ecx +4: cmpl $2, %ecx jng 3b -4: + addl bpl, %esi decl %edx jnz 1b @@ -209,7 +210,7 @@ shade_ximage_15_mmx_saturate: addl $4, %ecx js 2b - jz 4f + jmp 4f 3: movw (%esi, %ecx, 2), %ax movd %eax, %mm0 @@ -245,9 +246,10 @@ shade_ximage_15_mmx_saturate: movw %ax, (%esi, %ecx, 2) incl %ecx +4: cmpl $2, %ecx jng 3b -4: + addl bpl, %esi decl %edx jnz 1b @@ -309,7 +311,7 @@ shade_ximage_16_mmx: addl $4, %ecx js 2b - jz 4f + jmp 4f 3: movw (%esi, %ecx, 2), %ax movd %eax, %mm0 @@ -337,9 +339,10 @@ shade_ximage_16_mmx: movw %ax, (%esi, %ecx, 2) incl %ecx +4: cmpl $2, %ecx jng 3b -4: + addl bpl, %esi decl %edx jnz 1b @@ -391,7 +394,7 @@ shade_ximage_16_mmx_saturate: addl $4, %ecx js 2b - jz 4f + jmp 4f 3: movw (%esi, %ecx, 2), %ax movd %eax, %mm0 @@ -427,9 +430,10 @@ shade_ximage_16_mmx_saturate: movw %ax, (%esi, %ecx, 2) incl %ecx +4: cmpl $2, %ecx jng 3b -4: + addl bpl, %esi decl %edx jnz 1b |