#define mmax(a,b) ((a) > (b)?(a):(b))
#endif
#define BOOL int
/* Misc operations ------------------------------------------------------------------------ */