stint/uintops

Source   Edit  

Procs

func `*`(a, b: StUint): StUint {....raises: [], inline, noinit, ...gcsafe.}
Integer multiplication. Source   Edit  
func `+`(a, b: StUint): StUint {....raises: [], inline, noinit, ...gcsafe.}
Addition for multi-precision unsigned int. Source   Edit  
func `+`(a: StUint; b: SomeUnsignedInt): StUint {....raises: [], inline, noinit,
    ...gcsafe.}
Addition for multi-precision unsigned int with an unsigned integer. Source   Edit  
func `-`(a, b: StUint): StUint {....raises: [], inline, noinit, ...gcsafe.}
Substraction for multi-precision unsigned int. Source   Edit  
func `<`(a, b: StUint): bool {.inline, ...raises: [], inline, noinit, ...gcsafe.}
Unsigned less than comparison. Source   Edit  
func `<=`(a, b: StUint): bool {.inline, ...raises: [], inline, noinit, ...gcsafe.}
Unsigned less or equal comparison. Source   Edit  
func `==`(a, b: StUint): bool {.inline, ...raises: [], inline, noinit, ...gcsafe.}
Unsigned equal comparison. Source   Edit  
func `and`(a, b: StUint): StUint {....raises: [], inline, noinit, ...gcsafe.}
Bitwise and of numbers a and b. Source   Edit  
func clearBit(a: var StUint; k: Natural) {....raises: [], inline, ...gcsafe.}
Set bit at position k: k = 0..a.bits-1. Source   Edit  
func `div`(x, y: StUint): StUint {....raises: [], inline, noinit, ...gcsafe.}
Division operation for multi-precision unsigned uint. Source   Edit  
func divmod(x, y: StUint): tuple[quot, rem: StUint] {....raises: [], inline,
    noinit, ...gcsafe.}
Division and remainder operations for multi-precision unsigned uint. Source   Edit  
func getBit(a: StUint; k: Natural): bool {....raises: [], inline, ...gcsafe.}
Set bit at position k: k = 0..a.bits-1. Source   Edit  
func high[bits](_: typedesc[StUint[bits]]): StUint[bits] {.inline, ...raises: [],
    inline, noinit, ...gcsafe.}
Source   Edit  
func isEven(a: StUint): bool {.inline, ...raises: [], inline, noinit, ...gcsafe.}
Returns true if input is zero, false otherwise. Source   Edit  
func isOdd(a: StUint): bool {.inline, ...raises: [], inline, noinit, ...gcsafe.}
Returns true if input is off, false otherwise. Source   Edit  
func isOne(a: StUint): bool {....raises: [], inline, noinit, ...gcsafe.}
Source   Edit  
func isZero(a: StUint): bool {....raises: [], inline, noinit, ...gcsafe.}
Source   Edit  
func low[bits](_: typedesc[StUint[bits]]): StUint[bits] {.inline, ...raises: [],
    inline, noinit, ...gcsafe.}
Source   Edit  
func `mod`(x, y: StUint): StUint {....raises: [], inline, noinit, ...gcsafe.}
Remainder operation for multi-precision unsigned uint. Source   Edit  
func `not`(a: StUint): StUint {....raises: [], inline, noinit, ...gcsafe.}
Bitwise complement of unsigned integer a, i.e. flips all bits of the input. Source   Edit  
func one[bits: static[int]](T: typedesc[StUint[bits]]): T:type {.inline,
    ...raises: [], inline, noinit, ...gcsafe.}
Returns the one of the input type. Source   Edit  
func `or`(a, b: StUint): StUint {....raises: [], inline, noinit, ...gcsafe.}
Bitwise or of numbers a and b. Source   Edit  
func pow(a: StUint; e: Natural): StUint {....raises: [], noinit, ...gcsafe.}
Compute a to the power of e, e must be non-negative. Source   Edit  
func pow[aBits, eBits](a: StUint[aBits]; e: StUint[eBits]): StUint[aBits] {.
    ...raises: [], noinit, ...gcsafe.}
Compute x to the power of y, x must be non-negative. Source   Edit  
func setBit(a: var StUint; k: Natural) {....raises: [], inline, ...gcsafe.}
Set bit at position k: k = 0..a.bits-1. Source   Edit  
func setOne(a: var StUint) {....raises: [], inline, noinit, ...gcsafe.}
Source   Edit  
func setZero(a: var StUint) {....raises: [], inline, noinit, ...gcsafe.}
Set a to 0. Source   Edit  
func `shl`(a: StUint; k: Natural): StUint {....raises: [], inline, ...gcsafe.}
Shift left by k bits. Source   Edit  
func `shr`(a: StUint; k: Natural): StUint {....raises: [], inline, ...gcsafe.}
Shift right by k bits. Source   Edit  
func `xor`(a, b: StUint): StUint {....raises: [], inline, noinit, ...gcsafe.}
Bitwise xor of numbers x and y. Source   Edit  
func zero[bits: static[int]](T: typedesc[StUint[bits]]): T:type {.inline,
    ...raises: [], inline, noinit, ...gcsafe.}
Returns the zero of the input type. Source   Edit