hunt-extra ~master (2022-03-03T03:00:29Z)
Home
Dub
Repo
MutableBigInteger.modInverseBP2
hunt
math
BigInteger
MutableBigInteger
Calculate the multiplicative inverse of 2^k mod mod, where mod is odd.
class
MutableBigInteger
static
MutableBigInteger
modInverseBP2
(
MutableBigInteger
mod
,
int
k
)
Meta
Source
See Implementation
hunt
math
BigInteger
MutableBigInteger
constructors
this
functions
add
addDisjoint
addLower
addShifted
bitLength
clear
cloneValue
compare
compareHalf
copyValue
divide
divideAndRemainderBurnikelZiegler
divideKnuth
divideOneWord
euclidModInverse
hybridGCD
isEven
isNormal
isOdd
isOne
isZero
leftShift
modInverseMP2
mul
multiply
mutableModInverse
normalize
reset
rightShift
safeLeftShift
safeRightShift
setInt
setValue
sqrt
subtract
toBigInteger
toCompactValue
toIntArray
toString
static functions
binaryGcd
divWord
fixup
inverseMod32
inverseMod64
modInverseBP2
static variables
ONE
variables
KNUTH_POW2_THRESH_LEN
KNUTH_POW2_THRESH_ZEROS
intLen
offset
value
Calculate the multiplicative inverse of 2^k mod mod, where mod is odd.