Branch: Tag:

1999-08-13

1999-08-13 05:58:00 by Per Hedbor <ph@opera.com>

Working MMX layer operations for add and sub

Rev: src/modules/Image/layer_oper.h:1.7
Rev: src/modules/Image/layers.c:1.37

1:   /*   **! module Image   **! note - **! $Id: layers.c,v 1.36 1999/08/12 14:01:33 mirar Exp $ + **! $Id: layers.c,v 1.37 1999/08/13 05:58:00 per Exp $   **! class Layer   **! see also: layers   **!
214:   #include "global.h"      #include <math.h> /* floor */ - #ifdef TRY_USE_MMX - #include <mmx.h> - #endif +     - RCSID("$Id: layers.c,v 1.36 1999/08/12 14:01:33 mirar Exp $"); + RCSID("$Id: layers.c,v 1.37 1999/08/13 05:58:00 per Exp $");      #include "image_machine.h"   
239:      #include "image.h"    +  + #ifdef TRY_USE_MMX + #include <mmx.h> + #endif +    extern struct program *image_program;   extern struct program *image_layer_program;   extern struct program *image_colortable_program;
1357:   #define LM_FUNC lm_subtract   #define L_TRUNC(X) MAXIMUM(0,(X))   #define L_OPER(A,B) ((A)-(int)(B)) + #define L_MMX_OPER(A,MMXR) psubusb_m2r(A,MMXR)   #include "layer_oper.h" -  + #undef L_MMX_OPER   #undef LM_FUNC   #undef L_TRUNC   #undef L_OPER