checkedint v0.7.0 (2020-04-18T21:41:28Z)
Dub
Repo
SafeInt.bsr
checkedint
SafeInt
See
safeOp
.
SafeInt
!(
int
,
policy
,
bitOps
)
bsf
()
SafeInt
!(
int
,
policy
,
bitOps
)
bsr
()
struct
SafeInt
(N, IntFlagPolicy _policy, Flag!"bitOps" bitOps = Yes.bitOps)
const @
safe
SafeInt
!(
int
,
policy
,
bitOps
)
bsr
()
(
)
if
(
isIntegral
!
N
&&
isUnqual
!
N
)
SafeInt
!(
int
,
policy
,
bitOps
)
ilogb
()
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
See safeOp.