move trunc_div and trunc_rem to nmutil