def _bitsfor(maxval):
    maxvalbits = int(round(math.log(maxval)/math.log(2)))
    if maxval != (1 << maxvalbits):
        raise ValueError("maxval must be a power of 2, not %d" % maxval)
    return maxvalbits
Convert a maxval into a number of bits (left shift).
dataset/ETHPy150Open dpwe/audfprint/hash_table.py/_bitsfor