Метод | Описание | |
---|---|---|
AddSameSign ( |
Adds two numbers with the same sign.
|
|
Compare ( |
Compares two BigInteger
|
|
DwordDiv ( |
||
DwordMod ( |
||
Gcd ( |
||
LeftShift ( |
||
MinusEq ( |
||
ModInverse ( |
||
MultiByteDivide ( |
||
Multiply ( uint x, uint xOffset, uint xLen, uint y, uint yOffset, uint yLen, uint d, uint dOffset ) : void |
Multiplies the data in x [xOffset:xOffset+xLen] by y [yOffset:yOffset+yLen] and puts it into d [dOffset:dOffset+xLen+yLen]. This code is unsafe! It is the caller's responsibility to make sure that it is safe to access x [xOffset:xOffset+xLen], y [yOffset:yOffset+yLen], and d [dOffset:dOffset+xLen+yLen]. |
|
MultiplyByDword ( |
||
MultiplyMod2P32Pmod ( uint x, int xOffset, int xLen, uint y, int yOffest, int yLen, uint d, int dOffset, int mod ) : void |
Multiplies the data in x [xOffset:xOffset+xLen] by y [yOffset:yOffset+yLen] and puts the low mod words into d [dOffset:dOffset+mod]. This code is unsafe! It is the caller's responsibility to make sure that it is safe to access x [xOffset:xOffset+xLen], y [yOffset:yOffset+yLen], and d [dOffset:dOffset+mod]. |
|
PlusEq ( |
||
RightShift ( |
||
SingleByteDivideInPlace ( |
Performs n / d and n % d in one operation.
|
|
Subtract ( |
Метод | Описание | |
---|---|---|
DwordDivMod ( |
public static AddSameSign ( |
||
bi1 | A BigInteger | |
bi2 | A BigInteger | |
Результат |
public static Compare ( |
||
bi1 | A BigInteger | |
bi2 | A BigInteger | |
Результат | Sign |
public static DwordDiv ( |
||
n | ||
d | uint | |
Результат |
public static DwordMod ( |
||
n | ||
d | uint | |
Результат | uint |
public static Gcd ( |
||
a | ||
b | ||
Результат |
public static LeftShift ( |
||
bi | ||
n | int | |
Результат |
public static MinusEq ( |
||
big | ||
small | ||
Результат | void |
public static ModInverse ( |
||
bi | ||
modulus | ||
Результат |
public static MultiByteDivide ( |
||
bi1 | ||
bi2 | ||
Результат | Universal.Torrent.Client.Encryption.BigInteger.BigInteger[] |
public static Multiply ( uint x, uint xOffset, uint xLen, uint y, uint yOffset, uint yLen, uint d, uint dOffset ) : void | ||
x | uint | |
xOffset | uint | |
xLen | uint | |
y | uint | |
yOffset | uint | |
yLen | uint | |
d | uint | |
dOffset | uint | |
Результат | void |
public static MultiplyByDword ( |
||
n | ||
f | uint | |
Результат |
public static MultiplyMod2P32Pmod ( uint x, int xOffset, int xLen, uint y, int yOffest, int yLen, uint d, int dOffset, int mod ) : void | ||
x | uint | |
xOffset | int | |
xLen | int | |
y | uint | |
yOffest | int | |
yLen | int | |
d | uint | |
dOffset | int | |
mod | int | |
Результат | void |
public static PlusEq ( |
||
bi1 | ||
bi2 | ||
Результат | void |
public static RightShift ( |
||
bi | ||
n | int | |
Результат |
public static SingleByteDivideInPlace ( |
||
n | A BigInteger, upon exit this will hold n / d | |
d | uint | The divisor |
Результат | uint |
public static Subtract ( |
||
big | ||
small | ||
Результат |