docs: private int setBit(final int mem, final int mask, final boolean value) {
  
  		final int result;
  		if (value) {
  			result = mem | mask;  // set bit by using OR
  		} else {
  			result = mem & ~mask; // clear bit by using AND with the inverted mask
  		}
  		return result;
  
  	}