12 #define MAX(a,b) ( ((a)>(b)) ? (a) : (b) )
16 #define MIN(a,b) ( ((a)<(b)) ? (a) : (b) )
20 #define ABS(x) ( ((x)>=0) ? (x) : (-(x)) )
23 #define DIV_INT_ROUND_UP(a, b) (((a) + (b) - 1) / (b))
26 #define MEGA (KILO*KILO)
27 #define GIGA (KILO*MEGA)
28 #define TERA (KILO*GIGA)
29 #define PETA (KILO*TERA)
37 #define USECOND 1000000