mirror of https://github.com/GNOME/gimp.git
app/paint-funcs/paint-funcs-mmx.h Fixed typoes and brought the code back
2001-11-19 Daniel Egger <degger@fhm.edu> * app/paint-funcs/paint-funcs-mmx.h * app/paint-funcs/paint-funcs.c: Fixed typoes and brought the code back to compileland. Now the code IS tested. :)
This commit is contained in:
parent
6f2533b164
commit
08053a30a5
|
@ -1,3 +1,11 @@
|
||||||
|
2001-11-19 Daniel Egger <degger@fhm.edu>
|
||||||
|
|
||||||
|
* app/paint-funcs/paint-funcs-mmx.h
|
||||||
|
* app/paint-funcs/paint-funcs.c: Fixed typoes and brought the
|
||||||
|
code back to compileland.
|
||||||
|
|
||||||
|
Now the code IS tested. :)
|
||||||
|
|
||||||
2001-11-19 Michael Natterer <mitch@gimp.org>
|
2001-11-19 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
Some moving of unused files so they don't clutter app/...
|
Some moving of unused files so they don't clutter app/...
|
||||||
|
|
|
@ -30,10 +30,10 @@
|
||||||
#define MMX_PIXEL_OP(x) \
|
#define MMX_PIXEL_OP(x) \
|
||||||
void \
|
void \
|
||||||
x( \
|
x( \
|
||||||
const unsigned char *src1, \
|
const guchar *src1, \
|
||||||
const unsigned char *src2, \
|
const guchar *src2, \
|
||||||
unsigned count, \
|
guint count, \
|
||||||
unsigned char *dst) __attribute((regparm(3)));
|
guchar *dst) __attribute((regparm(3)));
|
||||||
|
|
||||||
/* A drawable has an alphachannel if contains either 4 or 2 bytes data
|
/* A drawable has an alphachannel if contains either 4 or 2 bytes data
|
||||||
* aka GRAYA and RGBA and thus the macro below works. This will have
|
* aka GRAYA and RGBA and thus the macro below works. This will have
|
||||||
|
@ -46,12 +46,12 @@ x( \
|
||||||
MMX_PIXEL_OP(op##_pixels_1a_1a)
|
MMX_PIXEL_OP(op##_pixels_1a_1a)
|
||||||
|
|
||||||
#define USE_MMX_PIXEL_OP_3A_1A(op) \
|
#define USE_MMX_PIXEL_OP_3A_1A(op) \
|
||||||
if (HAS_ALPHA (alms->bytes1) && HAS_ALPHA (bytes2)) \
|
if (HAS_ALPHA (alms->bytes1) && HAS_ALPHA (alms->bytes2)) \
|
||||||
{ \
|
{ \
|
||||||
if (alms->bytes1==2 && alms->bytes2==2) \
|
if (alms->bytes1==2 && alms->bytes2==2) \
|
||||||
return op##_pixels_1a_1a(alms->src1, alms->src2, alms->length, alms->dest); \
|
return op##_pixels_1a_1a(alms->src1, alms->src2, alms->length, *(alms->dest)); \
|
||||||
if (alms->bytes1==4 && alms->bytes2==4) \
|
if (alms->bytes1==4 && alms->bytes2==4) \
|
||||||
return op##_pixels_3a_3a(alms->src1, alms->src2, alms->length, alms->dest); \
|
return op##_pixels_3a_3a(alms->src1, alms->src2, alms->length, *(alms->dest)); \
|
||||||
}
|
}
|
||||||
|
|
||||||
MMX_PIXEL_OP_3A_1A(multiply);
|
MMX_PIXEL_OP_3A_1A(multiply);
|
||||||
|
|
|
@ -443,8 +443,8 @@ paint_funcs_setup (void)
|
||||||
if (use_mmx)
|
if (use_mmx)
|
||||||
{
|
{
|
||||||
layer_mode_funcs[DIFFERENCE_MODE] = layer_difference_mode_mmx;
|
layer_mode_funcs[DIFFERENCE_MODE] = layer_difference_mode_mmx;
|
||||||
layer_mode_funcs[ADD_MODE] = layer_add_mode_mmx;
|
layer_mode_funcs[ADDITION_MODE] = layer_addition_mode_mmx;
|
||||||
layer_mode_funcs[SUBSTRACT_MODE] = layer_substract_mode_mmx;
|
layer_mode_funcs[SUBTRACT_MODE] = layer_subtract_mode_mmx;
|
||||||
layer_mode_funcs[OVERLAY_MODE] = layer_overlay_mode_mmx;
|
layer_mode_funcs[OVERLAY_MODE] = layer_overlay_mode_mmx;
|
||||||
layer_mode_funcs[SCREEN_MODE] = layer_screen_mode_mmx;
|
layer_mode_funcs[SCREEN_MODE] = layer_screen_mode_mmx;
|
||||||
layer_mode_funcs[MULTIPLY_MODE] = layer_multiply_mode_mmx;
|
layer_mode_funcs[MULTIPLY_MODE] = layer_multiply_mode_mmx;
|
||||||
|
|
Loading…
Reference in New Issue