Made methods static, renamed them `T_m` -> `m_`

It's `m_` and not just `m` because `div` is a function given by the C
standard library.