src/intops/ops/division

Search:
Group by:
Source   Edit  

Templates

template narrowingDiv(uHi, uLo, v: uint64): tuple[q, r: uint64]

Narrowing division with remainder of an unsigned 128-bit by an unsigned 64-bit integer.

Takes three unsigned 64-bit integers: the dividend high word, the dividend low word, and the divisor.

Returns the quotient and the remainder.

Source   Edit