mirror of https://github.com/GNOME/gimp.git
app/composite/gimp-composite-mmx-installer.c
* app/composite/gimp-composite-mmx-installer.c * app/composite/gimp-composite-sse-installer.c: * app/composite/gimp-composite-sse.c: Conditional compilation matching the conditional compilation in gimp-composite-{mmx,sse}.c
This commit is contained in:
parent
873fe2934e
commit
3fa1239dc9
|
@ -1,3 +1,11 @@
|
|||
2003-08-14 Helvetix Victorinox <helvetix@gimp.org>
|
||||
|
||||
* app/composite/gimp-composite-mmx-installer.c
|
||||
* app/composite/gimp-composite-sse-installer.c:
|
||||
* app/composite/gimp-composite-sse.c:
|
||||
Conditional compilation matching the conditional compilation in
|
||||
gimp-composite-{mmx,sse}.c
|
||||
|
||||
2003-08-14 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/text/gimptextlayer.c: removed trailing whitespace.
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
#include "gimp-composite-mmx.h"
|
||||
|
||||
|
||||
#ifdef USE_MMX
|
||||
#ifdef ARCH_X86
|
||||
#if __GNUC__ >= 3
|
||||
static void (*gimp_composite_mmx[GIMP_COMPOSITE_N][GIMP_PIXELFORMAT_N][GIMP_PIXELFORMAT_N][GIMP_PIXELFORMAT_N])(GimpCompositeContext *) = {
|
||||
{ /* GIMP_COMPOSITE_NORMAL */
|
||||
{ /* A = v8 */
|
||||
|
@ -844,11 +847,17 @@ static void (*gimp_composite_mmx[GIMP_COMPOSITE_N][GIMP_PIXELFORMAT_N][GIMP_PIXE
|
|||
},
|
||||
},
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
void
|
||||
gimp_composite_mmx_install (void)
|
||||
{
|
||||
#ifdef USE_MMX
|
||||
#ifdef ARCH_X86
|
||||
#if __GNUC__ >= 3
|
||||
int mode, a, b, d;
|
||||
|
||||
for (mode = 0; mode < GIMP_COMPOSITE_N; mode++) {
|
||||
|
@ -865,6 +874,8 @@ gimp_composite_mmx_install (void)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
gimp_composite_mmx_init();
|
||||
}
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
#include "gimp-composite-sse.h"
|
||||
|
||||
|
||||
#ifdef USE_MMX
|
||||
#ifdef ARCH_X86
|
||||
#if __GNUC__ >= 3
|
||||
static void (*gimp_composite_sse[GIMP_COMPOSITE_N][GIMP_PIXELFORMAT_N][GIMP_PIXELFORMAT_N][GIMP_PIXELFORMAT_N])(GimpCompositeContext *) = {
|
||||
{ /* GIMP_COMPOSITE_NORMAL */
|
||||
{ /* A = v8 */
|
||||
|
@ -844,11 +847,17 @@ static void (*gimp_composite_sse[GIMP_COMPOSITE_N][GIMP_PIXELFORMAT_N][GIMP_PIXE
|
|||
},
|
||||
},
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
void
|
||||
gimp_composite_sse_install (void)
|
||||
{
|
||||
#ifdef USE_MMX
|
||||
#ifdef ARCH_X86
|
||||
#if __GNUC__ >= 3
|
||||
int mode, a, b, d;
|
||||
|
||||
for (mode = 0; mode < GIMP_COMPOSITE_N; mode++) {
|
||||
|
@ -865,6 +874,9 @@ gimp_composite_sse_install (void)
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
gimp_composite_sse_init();
|
||||
}
|
||||
|
|
|
@ -134,18 +134,18 @@
|
|||
"\tpsrlw $8, %%"#opr2"\n"
|
||||
|
||||
|
||||
static unsigned long rgba8_alpha_mask[2] = { 0xFF000000, 0xFF000000 };
|
||||
static unsigned long rgba8_b1[2] = { 0x01010101, 0x01010101 };
|
||||
static unsigned long rgba8_b255[2] = { 0xFFFFFFFF, 0xFFFFFFFF };
|
||||
static unsigned long rgba8_w1[2] = { 0x00010001, 0x00010001 };
|
||||
static unsigned long rgba8_w128[2] = { 0x00800080, 0x00800080 };
|
||||
static unsigned long rgba8_w256[2] = { 0x01000100, 0x01000100 };
|
||||
static unsigned long rgba8_w255[2] = { 0X00FF00FF, 0X00FF00FF };
|
||||
const static unsigned long rgba8_alpha_mask[2] = { 0xFF000000, 0xFF000000 };
|
||||
const static unsigned long rgba8_b1[2] = { 0x01010101, 0x01010101 };
|
||||
const static unsigned long rgba8_b255[2] = { 0xFFFFFFFF, 0xFFFFFFFF };
|
||||
const static unsigned long rgba8_w1[2] = { 0x00010001, 0x00010001 };
|
||||
const static unsigned long rgba8_w128[2] = { 0x00800080, 0x00800080 };
|
||||
const static unsigned long rgba8_w256[2] = { 0x01000100, 0x01000100 };
|
||||
const static unsigned long rgba8_w255[2] = { 0X00FF00FF, 0X00FF00FF };
|
||||
|
||||
static unsigned long va8_alpha_mask[2] = { 0xFF00FF00, 0xFF00FF00 };
|
||||
static unsigned long va8_b255[2] = { 0xFFFFFFFF, 0xFFFFFFFF };
|
||||
static unsigned long va8_w1[2] = { 0x00010001, 0x00010001 };
|
||||
static unsigned long va8_w255[2] = { 0X00FF00FF, 0X00FF00FF };
|
||||
const static unsigned long va8_alpha_mask[2] = { 0xFF00FF00, 0xFF00FF00 };
|
||||
const static unsigned long va8_b255[2] = { 0xFFFFFFFF, 0xFFFFFFFF };
|
||||
const static unsigned long va8_w1[2] = { 0x00010001, 0x00010001 };
|
||||
const static unsigned long va8_w255[2] = { 0X00FF00FF, 0X00FF00FF };
|
||||
/*
|
||||
*
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue