D | utility.h | 21 #define abs(a) (((a)>0)?((a)):(-(a))) argument 27 #define min(a,b) ((a) < (b) ? (a) : (b)) argument 31 #define max(a,b) ((a) > (b) ? (a): (b)) argument 35 #define min2(a,b) ((a) < (b) ? (a) : (b)) argument 39 #define min3(a,b,c) min2(min2(a, b), c) argument 43 #define max2(a,b) ((a) > (b) ? (a): (b)) argument 47 #define max3(a,b,c) max2(max2(a, b), c) argument 76 #define MAKE_U24(a,b,c) ((unsigned int)(((a) << 16) | ((b) << 8) | (c))) argument 77 #define MAKE_U32(a,b,c,d) ((unsigned int)(((a) << 24) | ((b) << 16) | ((c) << 8) | (d))) argument 98 #define SORT2(a, b, T) do { if ((a) > (b)) SWAP((a), (b), T); } while (0) argument [all …]
|