#define MULT 2 return ((int)pow(MULT, bits) - 1) << lsb;