The D Programming Language's Unofficial Docs
beta
Dlang.org
Get Help
popcnt
core
bitop
Calculates the number of set bits in an integer.
int
popcnt
(
uint
x
)
nothrow @
safe
@
nogc
pure
int
popcnt
(
uint
x
)
int
popcnt
(
ulong
x
)
core
bitop
functions
_popcnt
bitswap
bsf
bsr
bswap
bt
btc
btr
bts
inp
inpl
inpw
outp
outpl
outpw
popcnt
rol
ror
structs
BitRange
Suggestion Box / Bug Report
Calculates the number of set bits in an integer.