Detect CPUs without POPCNT and back off to non-SSE code
Use PANDN instead of flip + PAND
Use 32-bit registers for counters in the inner loop.

Slight reduction in code size for identical semantics.