| Modifier and Type | Field and Description |
|---|---|
| private static Object[] | |
| private int[] | |
| private boolean | |
| private static final FDBigInteger[] | |
| pack-priv static final long[] | |
| private static final long | |
| private static final int | |
| private int | |
| private int | |
| private static final FDBigInteger[] | |
| pack-priv static final int[] |
| Access | Constructor and Description |
|---|---|
| private | FDBigInteger(int[]
An array containing all non-zero data, int ints of the value.An offset indicating the number of zero offset)ints to pad
below the least significant element of data.Constructs an |
| public | FDBigInteger(long
The starting value. lValue, byte[] The decimal digits. digits, int The initial index into i, int digits.The final index into nDigits)digits.Constructs an |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private FDBigInteger | Returns: The sum of theFDBigIntegers.The other)FDBigInteger to add.Adds another |
| public int | Returns: -1, 0, or 1 according to the result of the comparison.The first addend of the sum to compare. x, FDBigInteger The second addend of the sum to compare. y)Compares this |
| private static int | Returns: Zero if all elements in range are zero, 1 otherwise.The array to be examined. a, int The index strictly below which elements are to be examined. from)Determines whether all elements of an array are zero for all indices less than a given index. |
| public int | Returns: A negative value, zero, or a positive value according to the result of the comparison.The other)FDBigInteger to compare.Compares the parameter with this |
| public int | Returns: The normalization bias.Retrieves the normalization bias of the |
| public boolean | |
| private static void | leftShift(int[]
The source array. src, int The initial index of the source array. idx, int[] The destination array. result, int The left shift. bitcount, int The prior source value. prev)Left shifts the contents of one int array into another. |
| public FDBigInteger | Returns: The shiftedFDBigInteger.The number of bits to shift left. shift)Shifts this |
| public FDBigInteger | |
| private static void | mult(int[]
The first array factor. s1, int The number of elements of s1Len, int[] s1 to use.The second array factor. s2, int The number of elements of s2Len, int[] s2 to use.The product array. dst)Multiplies two big integers represented as int arrays. |
| public FDBigInteger | Returns: ThisFDBigInteger multiplied by an integer.The factor by which to multiply this v)FDBigInteger.Multiplies this |
| private FDBigInteger | Returns: The product of this and the parameterFDBigIntegers.The other)FDBigInteger factor by which to multiply.Multiplies this |
| private static void | mult(int[]
The array representation of the big integer. src, int The number of elements of srcLen, int src to use.The constant factor by which to multiply. value, int[] The product array. dst)Multiplies by a constant value a big integer represented as an array. |
| private static void | mult(int[]
The array representation of the big integer. src, int The number of elements of srcLen, int src to use.The lower 32 bits of the long factor. v0, int The upper 32 bits of the long factor. v1, int[] The product array. dst)Multiplies by a constant value a big integer represented as an array. |
| private void | multAdd(int
The factor by which to multiply this iv, int FDBigInteger.The value to add to the product of this
addend)FDBigInteger and iv.Multiplies a |
| private static int | Returns: The final carry of the multiplication.The array representation of the big integer. src, int The number of elements of srcLen, int[] src to use.The product array. dst)Multiplies by 10 a big integer represented as an array. |
| public FDBigInteger | |
| public FDBigInteger | Returns: The multiplication result.The exponent of the power-of-five factor. e5, int The exponent of the power-of-two factor. e2)Multiplies this |
| private long | Returns: this - q*S.The integer parameter. q, FDBigInteger The S)FDBigInteger parameter.Multiplies the parameters and subtracts them from this |
| private static FDBigInteger | |
| public int | Returns: q = (int)(this / S).The divisor of this S)FDBigInteger.Computes q = (int)( this / S ) this = 10 * ( this mod S ) Return q. |
| private int | |
| public byte[] | Returns: Thebyte[] representation.Converts this |
| public String | Returns: The hexadecimal string representation.Overrides java. Converts this |
| private void | trimLeadingZeros()
Removes all leading zeros from this |
| public static FDBigInteger | Returns: value * 5e5 * 2e2The constant factor. value, int The exponent of the power-of-five factor. e5, int The exponent of the power-of-two factor. e2)Returns an |
| private static FDBigInteger | |
| public static FDBigInteger | Returns: 5e5 * 2e2The exponent of the power-of-five factor. e5, int The exponent of the power-of-two factor. e2)Returns an |
| archivedCaches | back to summary |
|---|---|
| private static Object[] archivedCaches | |
| data | back to summary |
|---|---|
| private int[] data | |
| isImmutable | back to summary |
|---|---|
| private boolean isImmutable | |
| LARGE_POW_5_CACHE | back to summary |
|---|---|
| private static final FDBigInteger[] LARGE_POW_5_CACHE
| |
| LONG_5_POW | back to summary |
|---|---|
| pack-priv static final long[] LONG_5_POW
| |
| LONG_MASK | back to summary |
|---|---|
| private static final long LONG_MASK | |
| MAX_FIVE_POW | back to summary |
|---|---|
| private static final int MAX_FIVE_POW | |
| nWords | back to summary |
|---|---|
| private int nWords | |
| offset | back to summary |
|---|---|
| private int offset | |
| POW_5_CACHE | back to summary |
|---|---|
| private static final FDBigInteger[] POW_5_CACHE
| |
| SMALL_5_POW | back to summary |
|---|---|
| pack-priv static final int[] SMALL_5_POW
| |
| FDBigInteger | back to summary |
|---|---|
| private FDBigInteger(int[] data, int offset) Constructs an
| |
| FDBigInteger | back to summary |
|---|---|
| public FDBigInteger(long lValue, byte[] digits, int i, int nDigits) Constructs an
| |
| FDBigInteger | back to summary |
|---|---|
| public FDBigInteger(long v) | |
| add | back to summary |
|---|---|
| private FDBigInteger add(FDBigInteger other) Adds another
| |
| addAndCmp | back to summary |
|---|---|
| public int addAndCmp(FDBigInteger x, FDBigInteger y) Compares this
| |
| checkZeroTail | back to summary |
|---|---|
| private static int checkZeroTail(int[] a, int from) Determines whether all elements of an array are zero for all indices less than a given index.
| |
| cmp | back to summary |
|---|---|
| public int cmp(FDBigInteger other) Compares the parameter with this
| |
| getNormalizationBias | back to summary |
|---|---|
| public int getNormalizationBias() Retrieves the normalization bias of the
| |
| isZero | back to summary |
|---|---|
| public boolean isZero() Returns whether this
| |
| leftShift | back to summary |
|---|---|
| private static void leftShift(int[] src, int idx, int[] result, int bitcount, int prev) Left shifts the contents of one int array into another.
| |
| leftShift | back to summary |
|---|---|
| public FDBigInteger leftShift(int shift) Shifts this
| |
| makeImmutable | back to summary |
|---|---|
| public FDBigInteger makeImmutable() Makes this
| |
| mult | back to summary |
|---|---|
| private static void mult(int[] s1, int s1Len, int[] s2, int s2Len, int[] dst) Multiplies two big integers represented as int arrays.
| |
| mult | back to summary |
|---|---|
| public FDBigInteger mult(int v) Multiplies this
| |
| mult | back to summary |
|---|---|
| private FDBigInteger mult(FDBigInteger other) Multiplies this
| |
| mult | back to summary |
|---|---|
| private static void mult(int[] src, int srcLen, int value, int[] dst) Multiplies by a constant value a big integer represented as an array.
The constant factor is an
| |
| mult | back to summary |
|---|---|
| private static void mult(int[] src, int srcLen, int v0, int v1, int[] dst) Multiplies by a constant value a big integer represented as an array.
The constant factor is a long represent as two
| |
| multAdd | back to summary |
|---|---|
| private void multAdd(int iv, int addend) Multiplies a
| |
| multAndCarryBy10 | back to summary |
|---|---|
| private static int multAndCarryBy10(int[] src, int srcLen, int[] dst) Multiplies by 10 a big integer represented as an array. The final carry is returned.
| |
| multBy10 | back to summary |
|---|---|
| public FDBigInteger multBy10() Multiplies this
| |
| multByPow52 | back to summary |
|---|---|
| public FDBigInteger multByPow52(int e5, int e2) Multiplies this
| |
| multSub | back to summary |
|---|---|
| private long multSub(long q, FDBigInteger S) Multiplies the parameters and subtracts them from this
| |
| pow5 | back to summary |
|---|---|
| private static FDBigInteger pow5(int e) Computes 5
| |
| quoRemIteration | back to summary |
|---|---|
| public int quoRemIteration(FDBigInteger S) throws IllegalArgumentException Computes q = (int)( this / S ) this = 10 * ( this mod S ) Return q.This is the iteration step of digit development for output. We assume that S has been normalized, as above, and that "this" has been left-shifted accordingly. Also assumed, of course, is that the result, q, can be expressed as an integer, 0 <= q < 10.
| |
| size | back to summary |
|---|---|
| private int size() Returns the number of
| |
| toByteArray | back to summary |
|---|---|
| public byte[] toByteArray() Converts this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Converts this | |
| trimLeadingZeros | back to summary |
|---|---|
| private void trimLeadingZeros() Removes all leading zeros from this | |
| valueOfMulPow52 | back to summary |
|---|---|
| public static FDBigInteger valueOfMulPow52(long value, int e5, int e2) Returns an
| |
| valueOfPow2 | back to summary |
|---|---|
| private static FDBigInteger valueOfPow2(int e) Returns an
| |
| valueOfPow52 | back to summary |
|---|---|
| public static FDBigInteger valueOfPow52(int e5, int e2) Returns an
| |