def aligned(v, by): return (v + (by - 1)) / by * by