def pow2bits(bin_val):
    """
    Convert the integer value to a tuple of the next power of two, 
    and number of bits required to represent it.
    """
    result = -1
    bits = (bin_val).bit_length()
    if bin_val > 1:
        result = 2**(bits)
    else:
        result = 1
        bits = 1
    return result, bits