Go to the documentation of this file. 20 #ifndef __TOOLS_TOOLS_H 21 #define __TOOLS_TOOLS_H 71 # define countof(x) (sizeof(x) / sizeof(x[0])) 81 # define unused(x) ((void)x) 90 # define min(a, b) __extension__ ({ \ 91 typeof (a) _a = (a); \ 92 typeof (b) _b = (b); \ 103 # define max(a, b) __extension__ ({ \ 104 typeof (a) _a = (a); \ 105 typeof (b) _b = (b); \ 117 # define cast_ptr(t, x) __extension__ ({ \