Update mm.c

update inline functions and backbone functions. Untested.