code wiki / _hdl_build / _r1bench_kern2.nx

_r1bench_kern2.nx

buildroot/runtime/_hdl_build/_r1bench_kern2.nx

929 B23 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind bench
docsdependenciesstructsconstsfunctions

about

_r1bench_kern2.nx -- R1 panel kernel #2: NO DIVISION (vs kern1's % prime). Isolates register-alloc/ codegen quality from the divide-optimization gcc applies to constant modulo. xor+mul+shift+add only; bounded (s stays ~1e16, no overflow), data-dependent result printed (DCE/fold-proof). Mirrors /tmp/kern2.c.

dependencies 1 imports · 0 importers

nx_syscalls.nx _r1bench_kern2.nx

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

main pn sys_mmap sys_write sys_exit

structs

none

consts

none

functions

5func pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
13func main() -> i64
calls 2: pnsys_exit