optimization trouble with nondebug build.
popc is wrong because it doesn't truncate arg to 32 bits.