The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
ctpop
mir
bitop
The 'ctpop' family of intrinsics counts the number of bits set in a value.
@
fastmath
T
ctpop
(
T
)
(
in
T
src
)
if
(
__traits(
isUnsigned
,
T
)
)
Meta
Source
See Implementation
mir
bitop
functions
bt
bta
btc
btr
bts
ctlz
ctlzp
ctpop
cttz
cttzp
nLeadingBitsToCount
nTrailingBitsToCount
variables
bitElemShift
bitShiftMask
The 'ctpop' family of intrinsics counts the number of bits set in a value.