KBig Integer
arbitrary-precision integer arithmetic. Pure Kotlin implementation.
Properties
Functions
Returns the bitwise AND of this value and other. (this & other)
Infix function for bitwise AND.
Returns the bitwise AND NOT of this value and other. (this & ~other)
Division operator for KBigInteger.
Returns both quotient and remainder in a single operation. More efficient than calling divide() and mod() separately.
Subtraction operator for KBigInteger.
Returns the bitwise NOT of this value. ~x = -x - 1
Returns the bitwise OR of this value and other. (this | other)
Infix function for bitwise OR.
Addition operator for KBigInteger.
Calculates this KBigInteger raised to the power of the specified integer exponent. Uses binary exponentiation for efficiency.
Remainder operator for KBigInteger.
Multiplication operator for KBigInteger.
Unary minus operator for KBigInteger.
Unary plus operator for KBigInteger (identity operation).
Returns the bitwise XOR of this value and other. (this ^ other)
Infix function for bitwise XOR.