def byte32
import bend-collections-laws-math@1.0.0.0/src/math/fixed.bend as Fixedimport Base
240def byte32(+x: U32, +k: Nat) -> U32:
241 U32.mod(U32.shrn(x, Nat.mul(8n, k)), 256)
Uses (5)
Used by (7)
- bend-collections-laws-math@1.0.0.0/src/math/fixed:u32_to_bytes_be
- bend-collections-laws-math@1.0.0.0/src/math/fixed:u32_to_bytes_le
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/fixbytes:byte_v
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/fixbytes:to_be32
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/fixbytes:to_le32
- …