> > Any particular reason that you select one approach over the other > > in the different cases? > > No particular reason, just like the architecture's __arch_hweightN.
The general recommendatiosn these days are to use static inline for code to get better type check. And it would also be nice to be consistent across architectures. Sam