public static boolean get(int[] bits, int idx) {
    int arrayIdx = idx >> 5;
    int bit = 1 << (idx & 0x1f);
    return (bits[arrayIdx] & bit) != 0;
  }
Gets the value of the bit at the given index.

@param bits {@code non-null;} bit set to operate on
@param idx {@code >= 0, < getMax(set);} which bit
@return the value of the indicated bit
android/android_framework/dex-maker/src/main/java/com/android/dx/util/Bits.java