mir-algorithm — Libmir Archive
Libmir Archive
API Reference Index
mir-algorithm Guide
Dlang.org
BigInt.powMod
mir
bignum
integer
BigInt
Computes modular exponentiation of this BigInt raised to exponent modulo modulus.
ref
powMod
(BigInt!expSize exponent, BigInt modulus)
struct
BigInt
(uint size64)
@
safe
ref @
safe
pure nothrow @
nogc
return scope
ref
powMod
(
uint
expSize
)
(
scope
ref
const
BigInt
!
expSize
exponent
,
scope
ref
const
BigInt
modulus
)
if
(
size64
&&
size64
<= ushort.
max
)
ref
powMod
(BigUIntView!(const size_t) exponent, BigInt modulus)
mir
bignum
integer
BigInt
constructors
this
functions
bitLength
coefficients
copy
copyFrom
copyFromBigEndian
ctlz
divMod
fromBinaryStringImpl
fromHexStringImpl
fromStringImpl
mulPow5
multiply
normalize
opAssign
opCast
opCmp
opEquals
opOpAssign
pow
powMod
putCoefficient
toString
view
static functions
fromBigEndian
fromBinaryString
fromHexString
variables
data
length
sign
Computes modular exponentiation of this BigInt raised to exponent modulo modulus.