bitmask function

int bitmask(
  1. int bitsNumber
)

Implementation

int bitmask(int bitsNumber) {
  return (1 << bitsNumber) - 1;
}