public static int[] makeBitSet(int max) {
    int size = (max + 0x1f) >> 5;
    return new int[size];
  }
Constructs a bit set to contain bits up to the given index (exclusive).

@param max {@code >= 0;} the maximum bit index (exclusive)
@return {@code non-null;} an appropriately-constructed instance
android/android_framework/dex-maker/src/main/java/com/android/dx/util/Bits.java