What about http://dlang.org/phobos/core_bitop.html#.popcnt ? Slower?