def word64.muladd10
import bendonnect-rpc@0.1.0.0/src/pb.bend as Pbimport Base
import bend-kit-protobuf@0.1.0.0/protobuf.bend as Pb
185# w * 10 + d (d < 10), with an overflow flag.
186def word64.muladd10(w: Pb.Word64, d: U32) -> Acc:
187 Pb.Word64{+h, +l} = w
188 ma.a(h, l, ma.step((l .&. 65535 : U32), d))