The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
popcnt
core
bitop
Calculates the number of set bits in an integer.
int
popcnt
(uint x)
int
popcnt
(ulong x)
nothrow @
safe
@
nogc
pragma(
inline
, true) pure
int
popcnt
(
ulong
x
)
Meta
Source
See Implementation
core
bitop
aliases
bswap
byteswap
functions
_popcnt
bitswap
bsf
bsr
bt
btc
btr
bts
inp
inpl
inpw
outp
outpl
outpw
popcnt
rol
ror
structs
BitRange
Calculates the number of set bits in an integer.