tmod_symm_abs() more portable