def width_from_max_int(value):
 return int(math.ceil(math.log((value + 1), 2)))

def width_from_max_int ( value ) : return int ( math . ceil ( math . log ( ( value + 1 ) , 2 ) ) )
convert the value specified to a bit_width .