def W64.small.divmod

bend-osdev-word64@0.1.1.0 · word64.bend:323

import bend-osdev-word64@0.1.1.0/word64.bend as Word64
import Base

323def W64.small.divmod(a: W64, +d: U32) -> W64Small:
324  match a:
325    case W64{+h, l}:
326      W64.small.fin(W64.small.step(d, W64.small.step(d, (0, 0), U32.shrn(h, 16n)), U32.and(h, 65535)), d, l)

Uses (8)

Used by (11)