| Modifier and Type | Method and Description |
|---|---|
| public void | conditionalSet(IntegerModuloP
the element to conditionally swap with b, int an int that determines whether to set set)Set this value to the value of b when set has the value 1. |
| public void | conditionalSwapWith(MutableIntegerModuloP
the element to conditionally swap with b, int an int that determines whether to swap swap)Swap the value of this with the value of b when swap has the value 1. |
| public MutableIntegerModuloP | |
| public MutableIntegerModuloP | Returns: thisthe subtrahend b)Set the value of this element equal to this - b. |
| public MutableIntegerModuloP | Returns: thisthe multiplicand b)Set the value of this element equal to this * b. |
| public MutableIntegerModuloP | Returns: thisthe small multiplicand v)Set the value of this element equal to this * v. The argument is not modified. |
| public MutableIntegerModuloP | |
| public MutableIntegerModuloP | |
| public MutableIntegerModuloP | Returns: thisthe element whose value should be copied to this v)Set the value of this element equal to the value of the supplied element. |
| public MutableIntegerModuloP | Returns: thisan array containing a little-endian unsigned integer v, int the starting position of the integer offset, int the number of bytes to read length, byte the high-order byte of the number highByte)Set the value equal to the little-endian unsigned integer stored at the specified position in an array. |
| public MutableIntegerModuloP | Returns: thisa buffer containing a little-endian unsigned integer buf, int the number of bytes to read length, byte the high-order byte of the number highByte)Set the value equal to the little-endian unsigned integer stored in a buffer. |
| conditionalSet | back to summary |
|---|---|
| public void conditionalSet(IntegerModuloP b, int set) Set this value to the value of b when set has the value 1. No change is made to this element when set has the value 0. The result is undefined when set has a value other than 0 or 1. The set parameter is an int (rather than boolean) to allow the implementation to perform the assignment using branch-free integer arithmetic.
| |
| conditionalSwapWith | back to summary |
|---|---|
| public void conditionalSwapWith(MutableIntegerModuloP b, int swap) Swap the value of this with the value of b when swap has the value 1. No change is made to either element when swap has the value 0. The result is undefined when swap has a value other than 0 or 1. The swap parameter is an int (rather than boolean) to allow the implementation to perform the swap using branch-free integer arithmetic.
| |
| setAdditiveInverse | back to summary |
|---|---|
| public MutableIntegerModuloP setAdditiveInverse() Set the value of this element equal to 0 - this.
| |
| setDifference | back to summary |
|---|---|
| public MutableIntegerModuloP setDifference(IntegerModuloP b) Set the value of this element equal to this - b. The argument is not modified.
| |
| setProduct | back to summary |
|---|---|
| public MutableIntegerModuloP setProduct(IntegerModuloP b) Set the value of this element equal to this * b. The argument is not modified.
| |
| setProduct | back to summary |
|---|---|
| public MutableIntegerModuloP setProduct(SmallValue v) Set the value of this element equal to this * v. The argument is not modified.
| |
| setSquare | back to summary |
|---|---|
| public MutableIntegerModuloP setSquare() Set the value of this element equal to this * this.
| |
| setSum | back to summary |
|---|---|
| public MutableIntegerModuloP setSum(IntegerModuloP b) Set the value of this element equal to this + b. The argument is not modified.
| |
| setValue | back to summary |
|---|---|
| public MutableIntegerModuloP setValue(IntegerModuloP v) Set the value of this element equal to the value of the supplied element. The argument is not modified.
| |
| setValue | back to summary |
|---|---|
| public MutableIntegerModuloP setValue(byte[] v, int offset, int length, byte highByte) Set the value equal to the little-endian unsigned integer stored at the specified position in an array. The range of accepted values is implementation-specific. This method also takes a byte which is interpreted as an additional high-order byte of the number.
| |
| setValue | back to summary |
|---|---|
| public MutableIntegerModuloP setValue(ByteBuffer buf, int length, byte highByte) Set the value equal to the little-endian unsigned integer stored in a buffer. The range of accepted values is implementation-specific. This method also takes a byte which is interpreted as an additional high-order byte of the number.
| |