def next_power_2(x):
    """
    Determine the next integer that is 2 raised to some power.

    :param x: Number which you would like to find the next power of 2 for

    :return: x: Number which is 2 raised to some power
    """
    # Function which finds the nearest number that is 2 raised to some power
    return 1 if x == 0 else 2**(x-1).bit_length()