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