from typing import List


def split_powers2(value: int) -> List[int]:
    """
    Returns a list of the powers of 2 that make up an integer. E.g. for 24, returns [8, 16], since
    8 + 16 = 2^3 + 2^4 == 24
    """

    value = abs(value)

    result = []
    while value > 0:
        next_value = value & (value - 1)
        result.append(value - next_value)
        value = next_value

    return result