src/nint128/arithmetic/multiplication

Source   Edit  

Procs

func `*`(a, b: Int128): Int128 {.inline, ...raises: [], tags: [], forbids: [].}
Source   Edit  
func `*`(a, b: UInt128): UInt128 {.inline, ...raises: [], tags: [], forbids: [].}
Source   Edit  
func `*`(a: UInt128; b: uint64): UInt128 {.inline, ...raises: [], tags: [],
    forbids: [].}
Source   Edit  
func `*=`[T: SomeInt128](x: var T; y: T) {.inline.}
Source   Edit  
func mul64by64To128(a, b: uint64): UInt128 {.inline, ...raises: [], tags: [],
    forbids: [].}
Source   Edit  
func mul64by64To128(a, b: uint64; hi: var uint64): uint64 {.inline,
    ...deprecated: "use `mul64by64To128(a, b: uint64): UInt128` instead",
    raises: [], tags: [], forbids: [].}
Deprecated: use `mul64by64To128(a, b: uint64): UInt128` instead
Source   Edit  
func mul128by128ToTwo128(a, b: UInt128; hi, lo: var UInt128): bool {.inline,
    ...raises: [], tags: [], forbids: [].}
Extended multiplication between two UInt128 which returns true if overflow occurs. lo is the result of multiplication and hi is the overflow. Source   Edit  
func mul128by128ToTwo128(a, b: UInt128; hi: var UInt128): UInt128 {....raises: [],
    tags: [], forbids: [].}
Returns the multiplication between a and b. hi is the overflow. Source   Edit  

Templates

template `*`(a: uint64; b: UInt128): UInt128
Source   Edit