def _round_to_bit(value, power):
    """Rounds the given value to the next multiple of 2^power.

    Args:
      value: int to be rounded.
      power: power of two which the value should be rounded up to.
    Returns:
      the result of value rounded to the next multiple 2^power.
    """
    return (((value - 1) >> power) + 1) << power