Commit 08053a30 authored by Daniel Egger's avatar Daniel Egger Committed by Daniel Egger
Browse files

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. :)
parent 6f2533b1
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>
Some moving of unused files so they don't clutter app/...
......
......@@ -30,10 +30,10 @@
#define MMX_PIXEL_OP(x) \
void \
x( \
const unsigned char *src1, \
const unsigned char *src2, \
unsigned count, \
unsigned char *dst) __attribute((regparm(3)));
const guchar *src1, \
const guchar *src2, \
guint count, \
guchar *dst) __attribute((regparm(3)));
/* 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
......@@ -46,12 +46,12 @@ x( \
MMX_PIXEL_OP(op##_pixels_1a_1a)
#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) \
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) \
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);
......
......@@ -443,8 +443,8 @@ paint_funcs_setup (void)
if (use_mmx)
{
layer_mode_funcs[DIFFERENCE_MODE] = layer_difference_mode_mmx;
layer_mode_funcs[ADD_MODE] = layer_add_mode_mmx;
layer_mode_funcs[SUBSTRACT_MODE] = layer_substract_mode_mmx;
layer_mode_funcs[ADDITION_MODE] = layer_addition_mode_mmx;
layer_mode_funcs[SUBTRACT_MODE] = layer_subtract_mode_mmx;
layer_mode_funcs[OVERLAY_MODE] = layer_overlay_mode_mmx;
layer_mode_funcs[SCREEN_MODE] = layer_screen_mode_mmx;
layer_mode_funcs[MULTIPLY_MODE] = layer_multiply_mode_mmx;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment