checkedint v0.4.4 (2016-06-05T09:26:21Z)
Dub
Repo
SafeInt.divPow2
checkedint
SafeInt
See
safeOp
.
auto
divPow2
(M exp)
struct
SafeInt
(N, IntFlagPolicy _policy, Flag!"bitOps" bitOps = Yes.bitOps)
const pure nothrow @
nogc
auto
divPow2
(
M
)
(
const
M
exp
)
if
(
isFloatingPoint
!
M
)
if
(
isIntegral
!
N
&&
isUnqual
!
N
)
auto
divPow2
(M exp)
SafeInt
!(
OpType
!(
M
,
op
,
N
),
policy
,
bitOps
)
opBinaryRight
(M left)
SafeInt
!(
OpType
!(
N
,
op
,
BasicScalar
!
M
), .
max
(
policy
,
intFlagPolicyOf
!
M
),
bitOps
&&
hasBitOps
!
M
)
opBinary
(M right)
typeof
(
this
)
opOpAssign
(M right)
auto
mulPow2
(M exp)
auto
mulPow2
(M exp)
auto
modPow2
(M exp)
auto
modPow2
(M exp)
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.