convert some macros to static inline functions

(0) -100 -30 -10 -1 +1 tip

mercurial