Merged vlineasm4 and mvlineasm4 into one function