def divmod
import bend-collections-laws-crypto@1.0.0.0/src/math/w64.bend as W64import Base
import bend-collections-laws-crypto@1.0.0.0/src/math/u64.bend as W
367# (a / b, a mod b) for b > 0
368def divmod(+a: W.U64, +b: W.U64) -> W.U64 & W.U64:
369 dm_pick(a, b, U32.is_zero(hi(b)))