Skip to main content

Module memory

Module memory 

Source
Expand description

Memory and control-flow test vectors.

memcpy_test and sort_u32 produce variable-length byte output; fib returns a single u64. The _suite() fns XOR-fold each op’s output bytes (interpreted as u64 stride where appropriate) into a single fingerprint.

Functions§

fib
Iterative Fibonacci. Input: n as u32 LE; output: fib(n) as u64 LE.
fib_suite
memcpy_test
Copy input bytes to output (exercises load/store patterns).
memcpy_test_suite
sort_u32
Sort an array of u32 LE values via insertion sort.
sort_u32_suite