#include <big_integer.h>
Reference counted class of BigIntegerInterface.
◆ MAXON_DEFAULT_REFERENCE_CONSTRUCTORS()
MAXON_DEFAULT_REFERENCE_CONSTRUCTORS |
( |
BigInteger |
, |
|
|
Reference |
|
|
) |
| |
◆ operator+=()
Adds another integer to the first operand.
- Parameters
-
- Returns
- The result of this + b.
◆ operator-=()
Subtracts a value from this BigIntegers.
- Parameters
-
- Returns
- The result of this - b.
◆ operator++() [1/2]
The prefix operator to increment this BigInteger.
- Returns
- The result of this + 1.
◆ operator++() [2/2]
The postfix operator to increment this BigInteger.
- Returns
- The result of this + 1.
◆ operator--() [1/2]
The prefix operator to decrement this BigInteger.
- Returns
- The result of this - 1.
◆ operator--() [2/2]
The postfix operator to decrement this BigInteger.
- Returns
- The result of this - 1.
◆ operator*=()
Multiplies another integer to the first operand.
- Parameters
-
- Returns
- The result of this * b.
◆ operator/=()
Divides this by another BigInteger.
- Parameters
-
[in] | b | The divisor. If the divisor is 0, the result will be 0. |
- Returns
- The result of a / b.
◆ operator%=()
Calculates the modulus of two BigInteger values.
- Parameters
-
[in] | b | The divisor. If the divisor is 0, the result will be 0. |
- Returns
- The result of this % b.
◆ operator<<=()
Shifts this BigInteger left by the specified number of bits.
- Parameters
-
[in] | s | The number of bits to left-shift the value. If this is negative, the value is shifted right. |
- Returns
- The result of this << s.
◆ operator>>=()
Shifts this BigInteger right by the specified number of bits.
- Parameters
-
[in] | s | The number of bits to right-shift the value. If this is negative, the value is shifted left. |
- Returns
- The result of this >> s.
◆ operator+
Adds two BigIntegers.
- Parameters
-
[in] | a | The fist summand. |
[in] | b | The second summand. |
- Returns
- The result of a + b.
◆ operator- [1/2]
Subtracts two BigIntegers.
- Parameters
-
[in] | a | The minuend. |
[in] | b | The subtrahend. |
- Returns
- The result of a - b.
◆ operator- [2/2]
Subtracts two BigIntegers.
- Parameters
-
- Returns
- The result of this - b.
◆ operator*
Multiplies two BigIntegers.
- Parameters
-
[in] | a | The fist factor. |
[in] | b | The second factor. |
- Returns
- The result of a * b.
◆ operator/
Divides two BigIntegers.
- Parameters
-
[in] | a | The dividend. |
[in] | b | The divisor. If the divisor is 0, the result will be 0. |
- Returns
- The result of a / b.
◆ operator%
Calculates the modulus of two BigInteger values.
- Parameters
-
[in] | a | The dividend. |
[in] | b | The divisor. If the divisor is 0, the result will be 0. |
- Returns
- The result of a % b.
◆ operator<<
Shifts a BigInteger left by the specified number of bits.
- Parameters
-
[in] | a | The source operand. |
[in] | s | The number of bits to left-shift the value. If this is negative, the value is shifted right. |
- Returns
- The result of a << s.
◆ operator>>
Shifts a BigInteger right by the specified number of bits.
- Parameters
-
[in] | a | The source operand. |
[in] | s | The number of bits to right-shift the value. If this is negative, the value is shifted left. |
- Returns
- The result of a >> s.