Index
Modules:
bigints
.
API symbols
`$`:
bigints: proc `$`(a: BigInt): string
`'bi`:
bigints: proc `'bi`(s: string): BigInt
`*=`:
bigints: template `*=`(a: var BigInt; b: BigInt)
`*`:
bigints: proc `*`(a, b: BigInt): BigInt
`+=`:
bigints: template `+=`(a: var BigInt; b: BigInt)
`+`:
bigints: proc `+`(a, b: BigInt): BigInt
`-=`:
bigints: template `-=`(a: var BigInt; b: BigInt)
`-`:
bigints: proc `-`(a: BigInt): BigInt
bigints: proc `-`(a, b: BigInt): BigInt
`..<`:
bigints: iterator `..<`(a, b: BigInt): BigInt
`..`:
bigints: iterator `..`(a, b: BigInt): BigInt
`<=`:
bigints: proc `<=`(a, b: BigInt): bool
`<`:
bigints: proc `<`(a, b: BigInt): bool
`==`:
bigints: proc `==`(a, b: BigInt): bool
`and`:
bigints: proc `and`(a, b: BigInt): BigInt
`div`:
bigints: proc `div`(a, b: BigInt): BigInt
`mod`:
bigints: proc `mod`(a, b: BigInt): BigInt
`not`:
bigints: proc `not`(a: BigInt): BigInt
`or`:
bigints: proc `or`(a, b: BigInt): BigInt
`shl`:
bigints: proc `shl`(x: BigInt; y: Natural): BigInt
`shr`:
bigints: proc `shr`(x: BigInt; y: Natural): BigInt
`xor`:
bigints: proc `xor`(a, b: BigInt): BigInt
abs:
bigints: proc abs(a: BigInt): BigInt
BigInt:
bigints: object BigInt
countdown:
bigints: iterator countdown(a, b: BigInt; step: int32 = 1): BigInt
countup:
bigints: iterator countup(a, b: BigInt; step: int32 = 1): BigInt
dec:
bigints: proc dec(a: var BigInt; b: int = 1)
divmod:
bigints: proc divmod(a, b: BigInt): tuple[q, r: BigInt]
fastLog2:
bigints: proc fastLog2(a: BigInt): int
gcd:
bigints: proc gcd(a, b: BigInt): BigInt
inc:
bigints: proc inc(a: var BigInt; b: int = 1)
initBigInt:
bigints: proc initBigInt(val: BigInt): BigInt
bigints: proc initBigInt(val: int64): BigInt
bigints: proc initBigInt(vals: sink seq[uint32]; isNegative = false): BigInt
bigints: proc initBigInt(str: string; base: range[2 .. 36] = 10): BigInt
bigints: proc initBigInt[T: int8 | int16 | int32](val: T): BigInt
bigints: proc initBigInt[T: uint8 | uint16 | uint32](val: T): BigInt
bigints: proc initBigInt(val: uint64): BigInt
bigints: template initBigInt(val: int): BigInt
bigints: template initBigInt(val: uint): BigInt
invmod:
bigints: proc invmod(a, modulus: BigInt): BigInt
pow:
bigints: proc pow(x: BigInt; y: Natural): BigInt
powmod:
bigints: proc powmod(base, exponent, modulus: BigInt): BigInt
pred:
bigints: proc pred(a: BigInt; b: int = 1): BigInt
succ:
bigints: proc succ(a: BigInt; b: int = 1): BigInt
toInt:
bigints: proc toInt[T: SomeInteger](x: BigInt): Option[T]
toString:
bigints: proc toString(a: BigInt; base: range[2 .. 36] = 10): string