]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fixed saturation for i386
authorJaroslav Kysela <perex@perex.cz>
Wed, 19 Feb 2003 10:58:29 +0000 (10:58 +0000)
committerJaroslav Kysela <perex@perex.cz>
Wed, 19 Feb 2003 10:58:29 +0000 (10:58 +0000)
src/pcm/pcm_dmix.c

index 86306ef68bba755e426a4ea3f3e764f4bfe315cb..de68f7c0cdd4a47dc3c362336aedbbe0eb879f04 100644 (file)
@@ -644,7 +644,7 @@ static void mix_areas1(unsigned int size,
 
                "4:"
                "\tmovw $0x7fff, %%ax\n"
-               "\tmovw (%%edi), %%ax\n"
+               "\tmovw %%ax, (%%edi)\n"
                "\tcmpl %%ecx,(%%ebx)\n"
                "\tjnz 3b\n"
                "\tadd %4, %%edi\n"
@@ -660,8 +660,8 @@ static void mix_areas1(unsigned int size,
 
                "5:"
                "\tmovw $-0x8000, %%ax\n"
-               "\tmovw (%%edi), %%ax\n"
-               "\tcmpl %%ecx,(%%ebx)\n"
+               "\tmovw %%ax, (%%edi)\n"
+               "\tcmpl %%ecx, (%%ebx)\n"
                "\tjnz 3b\n"
                "\tadd %4, %%edi\n"
                "\tadd %5, %%esi\n"