def le32

bend-collections-laws-math@1.0.0.0 · spec/math/random/chacha8rand.bend:209

import bend-collections-laws-math@1.0.0.0/spec/math/random/chacha8rand.bend as Chacha8rand
import Base

209# Go's byteorder.LEUint32: b0 | b1 << 8 | b2 << 16 | b3 << 24
210def le32(+b0: U32, +b1: U32, +b2: U32, +b3: U32) -> U32:
211  U32.or(U32.or(U32.or(b0, U32.shln(b1, 8n)), U32.shln(b2, 16n)), U32.shln(b3, 24n))

Uses (3)

Used by (1)