3 ms·
I suspect it's supposed to be popCnt (no "r"), which is short for "population count", which is the number of set bits in a byte/short/int/long/what-have-you.
by andreareina 10y ago
I suspect it's supposed to be popCnt (no "r"), which is short for "population count", which is the number of set bits in a byte/short/int/long/what-have-you.
- userbinator 10y ago"prop" is a common abbreviation for "property".
- janekm 10y agoKind of a perfect example of the ambiguity in over-shortened names ;) I also read it as propertyCount (which in my style shouldn't even be a variable...)
- masklinn 10y agoThat one specifically strikes me as a counter-example if anything, you don't lose anything by adding two more characters and calling it popCount, and it's significantly easier to read and understand.