def get_maximal_alignment(address):
    """
    Calculate the maximal alignment of the provided memory location.
    """
    alignment = 1
    while address % alignment == 0 and alignment < 256:
        alignment *= 2

    return alignment