def align_down(alignment, x):
 a = alignment
 return ((x // a) * a)

def align_down ( alignment , x ) : a = alignment return ( ( x // a ) * a )
align_down -> int rounds x down to nearest multiple of the alignment .