private int sizeForBits(final int bits) {
        // size is lookup table + datablocks
        return (1 << bits) + blocksize * bits;
    }
Creates a DenseLongMap for the given block size

@param blocksize bytes per bit-plane
main/src/main/java/cgeo/geocaching/brouter/util/DenseLongMap.java