import math


def ceil2(number, min_value=0):
    """Round up number to the next highest power of 2."""
    ceiled = 2 ** int(math.ceil(math.log(number, 2))) if number > 0 else 0
    return max(ceiled, min_value)