def words64
import bend-collections-laws-math@1.0.0.0/spec/math/random/chacha8rand.bend as Chacha8randimport Base
import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as W
172# consecutive little-endian word pairs as 64-bit words
173def words64(xs: List<&2, U32>) -> List<&2, W.U64>:
174 match xs:
175 case Con{lo, Con{hi, rest}}:
176 Con{W.U64{lo, hi}, words64(rest)}
177 case _:
178 []
Uses (3)
Used by (5)
- bend-collections-laws-math@1.0.0.0/spec/math/random/chacha8rand:stream_go
- bend-collections-laws-math@1.0.0.0/proofs/math/random/chacha8/block:group_correct
- bend-collections-laws-math@1.0.0.0/proofs/math/random/chacha8/rounds:interleave_correct
- bend-collections-laws-math@1.0.0.0/proofs/math/random/chacha8/stream:gw
- bend-collections-laws-math@1.0.0.0/proofs/math/random/chacha8/stream:rest