#define ARCH_X86 on x86-64 too.

2003-09-04  Manish Singh  <yosh@gimp.org>

        * configure.in: #define ARCH_X86 on x86-64 too.

        * app/composite/gimp-composite-sse2.c: dererference pointers outside
        of asm() construct.

        Now this stuff builds on x86-64, but fails some of the tests. Need
        to fix it later.
This commit is contained in:
Manish Singh 2003-09-04 17:34:57 +00:00 committed by Manish Singh
parent b982386fe6
commit d2c709b378
3 changed files with 18 additions and 5 deletions

View File

@ -1,3 +1,13 @@
2003-09-04 Manish Singh <yosh@gimp.org>
* configure.in: #define ARCH_X86 on x86-64 too.
* app/composite/gimp-composite-sse2.c: dererference pointers outside
of asm() construct.
Now this stuff builds on x86-64, but fails some of the tests. Need
to fix it later.
2003-09-04 Manish Singh <yosh@gimp.org> 2003-09-04 Manish Singh <yosh@gimp.org>
* tools/pdbgen/pdb/brushes.pdb * tools/pdbgen/pdb/brushes.pdb

View File

@ -72,8 +72,8 @@ xxxgimp_composite_addition_rgba8_rgba8_rgba8_sse2 (GimpCompositeContext *_op)
for (; op.n_pixels >= 4; op.n_pixels -= 4) for (; op.n_pixels >= 4; op.n_pixels -= 4)
{ {
asm (" movdqu (%0), %%xmm2; addl $16, %0\n" asm (" movdqu %0, %%xmm2\n"
"\tmovdqu (%1), %%xmm3; addl $16, %1\n" "\tmovdqu %1, %%xmm3\n"
"\tmovdqu %%xmm2, %%xmm4\n" "\tmovdqu %%xmm2, %%xmm4\n"
"\tpaddusb %%xmm3, %%xmm4\n" "\tpaddusb %%xmm3, %%xmm4\n"
@ -82,10 +82,13 @@ xxxgimp_composite_addition_rgba8_rgba8_rgba8_sse2 (GimpCompositeContext *_op)
"\t" pminub(xmm3, xmm2, xmm4) "\n" "\t" pminub(xmm3, xmm2, xmm4) "\n"
"\tpand %%xmm0, %%xmm2\n" "\tpand %%xmm0, %%xmm2\n"
"\tpor %%xmm2, %%xmm1\n" "\tpor %%xmm2, %%xmm1\n"
"\tmovdqu %%xmm1, (%2); addl $16, %2\n" "\tmovdqu %%xmm1, %2\n"
: "+r" (op.A), "+r" (op.B), "+r" (op.D)
: /* empty */ : /* empty */
: "m" (*op.A), "m" (*op.B), "m" (*op.D)
: "0", "1", "2", "%xmm0", "%xmm1", "%xmm2", "%xmm3", "%xmm4", "%xmm5", "%xmm6", "%xmm7"); : "0", "1", "2", "%xmm0", "%xmm1", "%xmm2", "%xmm3", "%xmm4", "%xmm5", "%xmm6", "%xmm7");
op.A += 16;
op.B += 16;
op.D += 16;
} }
if (op.n_pixels) if (op.n_pixels)

View File

@ -101,7 +101,7 @@ esac
AC_MSG_RESULT([$target_or_host]) AC_MSG_RESULT([$target_or_host])
case "$target_or_host" in case "$target_or_host" in
i*86-*-*) i*86-*-* | x86_64-*-*)
have_x86=yes have_x86=yes
AC_DEFINE(ARCH_X86, 1, [Define to 1 if you are compiling for ix86.]) AC_DEFINE(ARCH_X86, 1, [Define to 1 if you are compiling for ix86.])
;; ;;