def word64.muladd10

bendonnect-rpc@0.1.0.0 · src/pb.bend:185

import bendonnect-rpc@0.1.0.0/src/pb.bend as Pb
import 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))

Uses (6)

Used by (1)