Attempt to speed-up and/or sanitize MAX/MIN/CLAMP macro usage throughout

* app/appenv.h app/brightness_contrast.c app/color_balance.c
	app/curves.c app/gdisplay.h app/gdisplay_ops.c
	app/hue_saturation.c app/paint_core.c app/paint_funcs.c
	app/undo.c: Attempt to speed-up and/or sanitize
	MAX/MIN/CLAMP macro usage throughout gimp-core.
This commit is contained in:
Adam D. Moss
1998-07-24 18:52:03 +00:00
parent d982011311
commit 814a4285c6
28 changed files with 171 additions and 115 deletions

View File

@ -35,7 +35,7 @@
#define UNSCALE(g,x) ((x * SCALESRC(g)) / SCALEDEST(g))
#define LOWPASS(x) ((x>0) ? x : 0)
#define HIGHPASS(x,y) ((x>y) ? y : x)
/* #define HIGHPASS(x,y) ((x>y) ? y : x) */ /* unused - == MIN */
typedef enum