def le32

bend-collections@1.0.0.0 · src/math/random/chacha8.bend:89

import bend-collections@1.0.0.0/src/math/random/chacha8.bend as Chacha8
import Base

89# the little-endian word of four bytes (Go's byteorder.LEUint32)
90def le32(+b0: U32, +b1: U32, +b2: U32, +b3: U32) -> U32:
91  U32.or(U32.or(U32.or(b0, U32.shln(b1, 8n)), U32.shln(b2, 16n)), U32.shln(b3, 24n))

Uses (3)

Used by (1)