mmlib/mmat: replace some variables by literal constants