def half

bend-collections@1.0.0.0 · src/math/w64.bend:74

import bend-collections@1.0.0.0/src/math/w64.bend as W64
import Base
import bend-collections@1.0.0.0/src/math/u64.bend as W

74def half(+a: W.U64) -> W.U64:
75  W.U64{U32.add(U32.shr(lo(a)), U32.mul(U32.and(hi(a), 1), 2147483648)), U32.shr(hi(a))}

Uses (7)

Used by (4)