You're replying to a comment by Nathan Myers.

Nathan Myers Permalink
May 11, 2018, 05:11

You use the POPCNT instruction. Compilers have an intrinsic, __popcount(i). In C++, std::bitset


(i).count() compiles to a single POPCNT instruction.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "network_143": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.