(untested): make use of mem{cpy,set} in diag_down{left,right}.