code wiki / _hdl_build / nx_chacha_scalar_bench.nx
nx_chacha_scalar_bench.nx
buildroot/runtime/_hdl_build/nx_chacha_scalar_bench.nx
about
nx_chacha_scalar_bench.nx -- matched scalar baseline for the SIMD ChaCha bench. Same block function
(scalar qr, RFC 8439 input), looped M=4,000,000 times (256 MB keystream), no print. Time it the same
way (`time ./elf`) so SIMD-vs-scalar is apples-to-apples on the same hardware/toolchain. license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 5 | const K_MAGIC_4000000: i64 = 4000000 |
functions
| 7 | func u32(x: i64) -> i64 { return x & 0xFFFFFFFF } |
| 8 | func rotl32(x: i64, r: i64) -> i64 { let a: i64 = (x << r) & 0xFFFFFFFF; let b: i64 = (x & 0xFFFFFFFF) >> (32 - r); return a | b } called by 1: qr |
| 9 | func qr(s: *i64, a: i64, b: i64, c: i64, d: i64) -> i64 |
| 17 | func main() -> i64 |