xref: /PHP-8.2/ext/gd/libgd/gd_intern.h (revision 81f6d36c)
1 #ifndef GD_INTERN_H
2 #define GD_INTERN_H
3 #ifndef MIN
4 #define MIN(a,b) ((a)<(b)?(a):(b))
5 #endif
6 #define MIN3(a,b,c) ((a)<(b)?(MIN(a,c)):(MIN(b,c)))
7 #ifndef MAX
8 #define MAX(a,b) ((a)<(b)?(b):(a))
9 #endif
10 #define MAX3(a,b,c) ((a)<(b)?(MAX(b,c)):(MAX(a,c)))
11 #define CLAMP(x, low, high)  (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
12 
13 #endif
14 
15