code wiki / _hdl_build / _r1bench_kern2.nx
_r1bench_kern2.nx
buildroot/runtime/_hdl_build/_r1bench_kern2.nx
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
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
| none |
functions
| 5 | func pn(v: i64) -> i64 |
| 13 | func main() -> i64 |