BitwiseCapable

Inheritors

Functions

Link copied to clipboard
abstract infix fun and(other: BigType): BigType
Link copied to clipboard
abstract fun bitAt(position: Long): Boolean
Link copied to clipboard
abstract fun bitLength(): Int

Returns the number of bits needed to represent this number

Link copied to clipboard
abstract fun not(): BigType

Inverts only up to chosen BigTypeArithmetic.bitLength bits. This is different from Java biginteger which returns inverse in two's complement.

Link copied to clipboard
abstract infix fun or(other: BigType): BigType
Link copied to clipboard
abstract fun setBitAt(position: Long, bit: Boolean): BigType
Link copied to clipboard
abstract infix fun shl(places: Int): BigType
Link copied to clipboard
abstract infix fun shr(places: Int): BigType
Link copied to clipboard
abstract infix fun xor(other: BigType): BigType