#define max(x, y) ((x)>(y)?(x):(y)) #define min(x, y) ((x)<(y)?(x):(y)) double calc_nbits_in_data(unsigned char *data, int nbytestoprocess);