#ifndef UTILS_H #define UTILS_H #define MOD(x,y) ( ( x+y ) % y ) #ifndef MAX #define MAX(a,b) \ ({ __typeof__ (a) _a = (a); \ __typeof__ (b) _b = (b); \ _a > _b ? _a : _b; }) #endif #ifndef MIN #define MIN(a,b) \ ({ __typeof__ (a) _a = (a); \ __typeof__ (b) _b = (b); \ _a < _b ? _a : _b; }) #endif typedef long long int index_int; // VLE we should test somewhere..... #define MPI_INDEX_INT MPI_LONG_LONG_INT void psizes_from_global(index_int *sizes,int P,index_int gsize); int hasarg_from_argcv(const char *name,int nargs,char **the_args); int iarg_from_argcv(const char *name,int vdef,int nargs,char **the_args); #endif