pike.git / src / modules / Image / layers.c

version» Context lines:

pike.git/src/modules/Image/layers.c: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   **!      **!   **!   **! <add_appendix name="layers" title="Image.Layer modes">   **! <dl compact>   **! <dt><i>The variables in the expression:</i>   **! <dt>L<dd><i>The active layer</i>
pike.git/src/modules/Image/layers.c:207:   **! return 0;   **! }   **!   **! </execute>   **! </add_appendix>   */      #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"      #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "array.h"   #include "mapping.h"   #include "threads.h"   #include "builtin_functions.h"   #include "dmalloc.h"   #include "operators.h"   #include "module_support.h"   #include "opcodes.h"      #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;      static struct mapping *colors=NULL;   static struct object *colortable=NULL;   static struct array *colornames=NULL;      static const rgb_group black={0,0,0};   static const rgb_group white={COLORMAX,COLORMAX,COLORMAX};
pike.git/src/modules/Image/layers.c:1350:   #define L_MMX_OPER(A,MMXR) paddusb_m2r(A,MMXR)   #include "layer_oper.h"   #undef L_MMX_OPER   #undef LM_FUNC   #undef L_TRUNC   #undef L_OPER      #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      #define LM_FUNC lm_multiply   #define L_TRUNC(X) (X)   #define L_OPER(A,B) CCUT((A)*(int)(B))   #include "layer_oper.h"   #undef LM_FUNC   #undef L_TRUNC