1 /* $FreeBSD$ */ 2 3 #define min_t(type, x, y) ({ \ 4 type __min1 = (x); \ 5 type __min2 = (y); \ 6 __min1 < __min2 ? __min1 : __min2; }) 7 8 #define max_t(type, x, y) ({ \ 9 type __max1 = (x); \ 10 type __max2 = (y); \ 11 __max1 > __max2 ? __max1 : __max2; }) 12 13 #define min(a, b) ((a) > (b) ? (b) : (a)) 14 #define max(a, b) ((a) < (b) ? (b) : (a)) 15 #define SWITCH_FALLTHROUGH (void)0 16 #define ALWAYS_INLINE __attribute__ ((__always_inline__)) 17 #define VALGRIND_MAKE_MEM_DEFINED(...) 0 18 #define likely(x) __predict_true(x) 19 #define unlikely(x) __predict_false(x) 20 #define SHM_HUGETLB 0 21