Home | History | Annotate | Download | only in gregbook

Lines Matching defs:MAX

124 #define MAX(a,b)         (a>b?a:b)
126 #define CLIP(a,min,max) MAX(min,MIN((a),max))
128 #define CLIP8P(c) MAX(0,(MIN((c),255))) /* 8-bit pos. integer (uch) */
305 long loop_interval = -1; /* seconds (100,000 max) */
1058 int k, hmax, max;
1160 hmax = (bgscale-1)/2; /* half the max weight of a color */
1161 max = 2*hmax; /* the max weight of a color */
1180 *dest++ = (k*r1 + (max-k)*r2) / max;
1181 *dest++ = (k*g1 + (max-k)*g2) / max;
1182 *dest++ = (k*b1 + (max-k)*b2) / max;
1215 freq = MAX((double)bg[pat].bg_freq, 0.0);
1228 gray = (double)MAX(ABS(y), ABS(x)) / grayspot;
1233 intensity = (MAX(MIN(intensity,1.0),-1.0) + 1.0) * 0.5;
1236 s = MIN(MAX(s,0.0), 1.0);
1237 v = MIN(MAX(intensity,0.0), 1.0);
1842 int k, hmax, max;
1929 hmax = (bgscale-1)/2; /* half the max weight of a color */
1930 max = 2*hmax; /* the max weight of a color */
1949 *dest++ = (k*r1 + (max-k)*r2) / max;
1950 *dest++ = (k*g1 + (max-k)*g2) / max;
1951 *dest++ = (k*b1 + (max-k)*b2) / max;
1980 freq = MAX((double)bg[pat].bg_freq, 0.0);
1993 gray = (double)MAX(ABS(y), ABS(x)) / grayspot;
1998 intensity = (MAX(MIN(intensity,1.0),-1.0) + 1.0) * 0.5;
2001 s = MIN(MAX(s,0.0), 1.0);
2002 v = MIN(MAX(intensity,0.0), 1.0);