Back to X64dbg

popcnt

docs/commands/general-purpose/popcnt.md

2026.04.20321 B
Original Source

popcnt

Evaluate the population count of a value, that is, number of bits set to 1.

arguments

arg1 Value.

result

arg1 is set to the population count. Additionaly, the internal variable $_EZ_FLAG is set to 1 if arg1 is 0, and set to 0 otherwise. The internal variable $_BS_FLAG is set to 0.