checkedint ~master (2017-04-21T23:53:16Z)
Dub
Repo
SafeInt.pow
checkedint
SafeInt
See
safeOp
.
M
pow
(
const
M
exp
)
SafeInt
!(
CallType
!(
std
.
math
.
pow
,
N
,
BasicScalar
!
M
), .
max
(
policy
,
intFlagPolicyOf
!
M
),
bitOps
&&
hasBitOps
!
M
)
pow
(
const
M
exp
)
struct
SafeInt
(N, IntFlagPolicy _policy, Flag!"bitOps" bitOps = Yes.bitOps)
SafeInt
!(
CallType
!(
std.math.pow
,
N
,
BasicScalar
!
M
), .
max
(
policy
,
intFlagPolicyOf
!
M
),
bitOps
&&
hasBitOps
!
M
)
pow
const @
safe
(
M
)
(
const
M
exp
)
if
(
isCheckedInt
!
M
||
isFixedPoint
!
M
)
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
See safeOp.