app/composite/gimp-composite-vis.c Use ARCH_SPARC and USE_VIS to

* app/composite/gimp-composite-vis.c
* app/composite/Makefile.am: Use ARCH_SPARC and USE_VIS to
	conditionally compile VIS optimisations.
This commit is contained in:
Helvetix Victorinox 2003-08-15 17:10:36 +00:00
parent b23e3899b0
commit 75f1f8161f
5 changed files with 14 additions and 8 deletions

View file

@ -1,5 +1,9 @@
2003-08-15 Helvetix Victorinox <helvetix@gimp.org>
* app/composite/gimp-composite-vis.c
* app/composite/Makefile.am: Use ARCH_SPARC and USE_VIS to
conditionally compile VIS optimisations.
* app/composite/gimp-composite-vis.c: named gimp_composite_vis_init()
2003-08-15 Michael Natterer <mitch@gimp.org>

View file

@ -50,10 +50,10 @@ libappcomposite_a_SOURCES = $(libappcomposite_a_built_sources) $(libappcomposite
regenerate: gimp-composite-generic.o gimp-composite-mmx.o gimp-composite-sse.o gimp-composite-altivec.o gimp-composite-vis.o
$(srcdir)/make-installer.py -t -f gimp-composite-generic.o
$(srcdir)/make-installer.py -t -r '(__GNUC__ >= 3) && defined(USE_MMX) && defined(ARCH_X86)' -f gimp-composite-mmx.o
$(srcdir)/make-installer.py -t -r '(__GNUC__ >= 3) && defined(USE_MMX) && defined(ARCH_X86)' -f gimp-composite-sse.o
$(srcdir)/make-installer.py -t -r '(__GNUC__ >= 3) && defined(USE_MMX) && defined(ARCH_PPC)' -f gimp-composite-altivec.o
$(srcdir)/make-installer.py -t -r '(__GNUC__ >= 3) && (defined(sparc) || defined(__sparc__))' -f gimp-composite-vis.o
$(srcdir)/make-installer.py -t -r '(__GNUC__ >= 3) && defined(USE_MMX) && defined(ARCH_X86)' -f gimp-composite-mmx.o
$(srcdir)/make-installer.py -t -r '(__GNUC__ >= 3) && defined(USE_MMX) && defined(ARCH_X86)' -f gimp-composite-sse.o
$(srcdir)/make-installer.py -t -r '(__GNUC__ >= 3) && defined(USE_ALTIVEC) && defined(ARCH_PPC)' -f gimp-composite-altivec.o
$(srcdir)/make-installer.py -t -r '(__GNUC__ >= 3) && defined(USE_VIS) && defined(ARCH_SPARC))' -f gimp-composite-vis.o
EXTRA_DIST = \
make-installer.py \

View file

@ -16,7 +16,7 @@ static struct install_table {
GimpPixelFormat D;
void (*function)(GimpCompositeContext *);
} _gimp_composite_mmx[] = {
#if (__GNUC__ >= 3) && defined(USE_MMX) && defined(ARCH_X86)
#if (__GNUC__ >= 3) && defined(USE_MMX) && defined(ARCH_X86)
{ GIMP_COMPOSITE_MULTIPLY, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_multiply_rgba8_rgba8_rgba8_mmx },
{ GIMP_COMPOSITE_SCREEN, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_screen_rgba8_rgba8_rgba8_mmx },
{ GIMP_COMPOSITE_DIFFERENCE, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_difference_rgba8_rgba8_rgba8_mmx },

View file

@ -16,7 +16,7 @@ static struct install_table {
GimpPixelFormat D;
void (*function)(GimpCompositeContext *);
} _gimp_composite_sse[] = {
#if (__GNUC__ >= 3) && defined(USE_MMX) && defined(ARCH_X86)
#if (__GNUC__ >= 3) && defined(USE_MMX) && defined(ARCH_X86)
{ GIMP_COMPOSITE_MULTIPLY, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_multiply_rgba8_rgba8_rgba8_sse },
{ GIMP_COMPOSITE_SCREEN, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_screen_rgba8_rgba8_rgba8_sse },
{ GIMP_COMPOSITE_OVERLAY, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_overlay_rgba8_rgba8_rgba8_sse },

View file

@ -23,7 +23,8 @@
#include "config.h"
#if defined(sparc) || defined(__sparc__)
#if defined(USE_VIS)
#if defined(ARCH_SPARC)
#include <stdio.h>
@ -37,7 +38,8 @@
#if __GNUC__ >= 3
#endif /* __GNUC__ > 3 */
#endif /* defined(sparc) || defined(__sparc__) */
#endif /* defined(ARCH_SPARC) */
#endif /* defined(USE_VIS) */
void
gimp_composite_vis_init(void)