2003-08-14 15:43:34 +08:00
|
|
|
#ifndef gimp_composite_mmx_h
|
|
|
|
#define gimp_composite_mmx_h
|
2003-07-24 16:00:12 +08:00
|
|
|
|
migrated to new (trimmer) code and removed dead code. Some beautification
* app/composite/make-install.py: migrated to new (trimmer) code and
removed dead code. Some beautification for generated code.
* app/composite/gimp-composite-{mmx,sse,sse2,3dnow,altivec,vis,generic}.{c,h}:
All init() functions are also a run-time check and now expected to
return TRUE/FALSE if the particular set of compositing functions can
be used.
* app/composite/gimp-composite.c: No longer has to determine if
the particular set of compositing functions can be used.
* app/composite/gimp-composite-{mmx,sse,sse2,3dnow,altivec,vis}-{install,test}.c:
Regenerated
* app/composite/test-composite.c: Deprecated, removed. All tests are automatically
generated and the code is in app/composite/gimp-composite-{mmx,sse,sse2,3dnow,altivec,vis}-test.c:
* app/composite/Makefile.am: removed unused references to test-composite.c
2003-10-06 10:46:15 +08:00
|
|
|
extern gboolean gimp_composite_mmx_init (void);
|
2003-07-29 10:54:09 +08:00
|
|
|
|
2003-08-14 15:43:34 +08:00
|
|
|
/*
|
2006-04-12 20:49:29 +08:00
|
|
|
* The function gimp_composite_*_install() is defined in the code
|
|
|
|
* generated by make-install.py I hate to have make-install.py create
|
|
|
|
* a .h file just for that declaration, so I do it here.
|
2003-08-14 15:43:34 +08:00
|
|
|
*/
|
migrated to new (trimmer) code and removed dead code. Some beautification
* app/composite/make-install.py: migrated to new (trimmer) code and
removed dead code. Some beautification for generated code.
* app/composite/gimp-composite-{mmx,sse,sse2,3dnow,altivec,vis,generic}.{c,h}:
All init() functions are also a run-time check and now expected to
return TRUE/FALSE if the particular set of compositing functions can
be used.
* app/composite/gimp-composite.c: No longer has to determine if
the particular set of compositing functions can be used.
* app/composite/gimp-composite-{mmx,sse,sse2,3dnow,altivec,vis}-{install,test}.c:
Regenerated
* app/composite/test-composite.c: Deprecated, removed. All tests are automatically
generated and the code is in app/composite/gimp-composite-{mmx,sse,sse2,3dnow,altivec,vis}-test.c:
* app/composite/Makefile.am: removed unused references to test-composite.c
2003-10-06 10:46:15 +08:00
|
|
|
extern gboolean gimp_composite_mmx_install (void);
|
2003-08-14 15:43:34 +08:00
|
|
|
|
2004-07-19 02:24:32 +08:00
|
|
|
/*
|
2004-07-17 13:24:08 +08:00
|
|
|
* Rummage through the compile-time environment to ensure this file
|
|
|
|
* can actually be compiled like we expect it to. If all is okay,
|
2005-05-15 07:17:56 +08:00
|
|
|
* define the manifest constant COMPILE_MMX_IS_OKAY.
|
2004-07-17 13:24:08 +08:00
|
|
|
*/
|
2004-09-03 10:53:19 +08:00
|
|
|
#if !defined(__INTEL_COMPILER) || defined(USE_INTEL_COMPILER_ANYWAY)
|
2004-07-17 13:24:08 +08:00
|
|
|
#if defined(USE_MMX)
|
|
|
|
#if defined(ARCH_X86)
|
2003-07-29 10:54:09 +08:00
|
|
|
#if __GNUC__ >= 3
|
2006-02-28 14:34:16 +08:00
|
|
|
#if defined(ARCH_X86_64) || (!defined(PIC) && !defined(__PIC__))
|
2004-07-17 13:24:08 +08:00
|
|
|
#define COMPILE_MMX_IS_OKAY (1)
|
2006-02-28 14:34:16 +08:00
|
|
|
#endif /* defined(ARCH_X86_64) || (!defined(PIC) && !defined(__PIC__)) */
|
2004-07-17 13:24:08 +08:00
|
|
|
#endif /* __GNUC__ >= 3 */
|
|
|
|
#endif /* defined(ARCH_X86) */
|
|
|
|
#endif /* defined(USE_MMX) */
|
|
|
|
#endif /* !defined(__INTEL_COMPILER) */
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef COMPILE_MMX_IS_OKAY
|
2003-07-09 07:15:16 +08:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
*/
|
app/composite/gimp-composite.h app/composite/gimp-composite-generic.h
* app/composite/gimp-composite.h
* app/composite/gimp-composite-generic.h
* app/composite/gimp-composite-regression.h: Reformatted to include
argument names in function prototypes.
* app/composite/gimp-composite.c
* app/composite/gimp-composite-generic.c
* app/composite/gimp-composite-regression.c: Added gtk-doc templates for functions.
* app/composite/make-install.py: migrated to new (trimmer) code and
removed dead code. Some beautification for generated code.
* app/composite/gimp-composite-{mmx,sse,sse2,3dnow,altivec,vis,generic}.{c,h}:
All init() functions are also a run-time check and now expected to
return TRUE/FALSE if the particular set of compositing functions can
be used.
* app/composite/gimp-composite.c: No longer has to determine if
the particular set of compositing functions can be used.
* app/composite/gimp-composite-{mmx,sse,sse2,3dnow,altivec,vis}-{install,test}.c:
Regenerated
* app/composite/test-composite.c: Deprecated, removed. All tests are automatically
generated and the code is in app/composite/gimp-composite-{mmx,sse,sse2,3dnow,altivec,vis}-test.c:
* app/composite/Makefile.am: removed unused references to test-composite.c
2003-10-12 08:10:21 +08:00
|
|
|
extern void gimp_composite_addition_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_burn_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_coloronly_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_darken_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_difference_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_dissolve_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_divide_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_dodge_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_grain_extract_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_grain_merge_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_hardlight_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_hueonly_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_lighten_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_multiply_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_overlay_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_replace_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_saturationonly_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_scale_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_screen_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_softlight_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_subtract_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_swap_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
|
|
|
extern void gimp_composite_valueonly_rgba8_rgba8_rgba8_mmx (GimpCompositeContext *ctx);
|
2003-07-09 07:15:16 +08:00
|
|
|
|
2004-09-02 10:46:31 +08:00
|
|
|
extern void gimp_composite_addition_va8_va8_va8_mmx (GimpCompositeContext *ctx);
|
2005-05-15 07:17:56 +08:00
|
|
|
extern void gimp_composite_subtract_va8_va8_va8_mmx (GimpCompositeContext *ctx);
|
|
|
|
/*extern void gimp_composite_multiply_va8_va8_va8_mmx (GimpCompositeContext *ctx);*/
|
2004-07-17 13:24:08 +08:00
|
|
|
#endif /* COMPILE_IS_OKAY */
|
2003-07-09 07:15:16 +08:00
|
|
|
#endif
|