def W64.small.divmod
import bend-osdev-word64@0.1.1.0/word64.bend as Word64import 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)