checkedint v0.4.4 (2016-06-05T09:26:21Z)
Dub
Repo
SafeInt.popcnt
checkedint
SafeInt
Count the number of set bits using
core.bitop.popcnt()
.
struct
SafeInt
(N, IntFlagPolicy _policy, Flag!"bitOps" bitOps = Yes.bitOps)
const pure nothrow @
nogc
SafeInt
!(
int
,
policy
,
bitOps
)
popcnt
()
(
)
if
(
isIntegral
!
N
&&
isUnqual
!
N
)
Meta
Source
See Implementation
checkedint
SafeInt
constructors
this
functions
abs
bsf
bsr
divPow2
ilogb
modPow2
mulPow2
opAssign
opBinary
opBinaryRight
opCast
opCmp
opEquals
opOpAssign
opUnary
popcnt
pow
toHash
toString
properties
bits
idx
variables
bscal
max
min
policy
Count the number of set bits using core.bitop.popcnt().