public static int getAlignedOffset(int alignment, int minimumOffset) {
		if (alignment <= 0) {
			return minimumOffset;
		}
		if (isPowerOfTwo(alignment)) {
			// handle alignment which is a power-of-2
			return alignment + ((minimumOffset - 1) & ~(alignment - 1));
		}
		int offcut = (minimumOffset % alignment);
		int adj = (offcut != 0) ? (alignment - offcut) : 0;
		return minimumOffset + adj;
	}
Determines the first offset that is equal to or greater than the minimum offset which
has the specified alignment.  If a non-positive alignment is specified the origina
minimumOffset will be return.
@param alignment the desired alignment (positive value)
@param minimumOffset the minimum offset
@return the aligned offset
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/DataOrganizationImpl.java