def win.msb.join
import bend-kit-bits@0.1.0.1/bits.bend as Bitsimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
17def win.msb.join(+s: U32, +lo: U32, r: Array<U32> & U32) -> Array<U32> & U32:
18 (a, +hi) = r
19 (a, (U32.shln(Bytes.bswap(lo), U32.to_nat(s)) .|. U32.shrn(Bytes.bswap(hi), U32.to_nat((32 - s : U32))) : U32))