code wiki / _hdl_build / _r1bench_kern.nx
_r1bench_kern.nx
buildroot/runtime/_hdl_build/_r1bench_kern.nx
about
_r1bench_kern.nx -- R1 toolchain exceed-panel shared kernel (NishiLang side).
Identical modular-arithmetic loop to /tmp/kern.c so nx_cc vs gcc is apples-to-apples:
no integer overflow (i*i<=1e16, %1e9+7 keeps s bounded), result data-dependent so neither
compiler can dead-code-eliminate or constant-fold the loop. Prints the result for cross-check.
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
| 6 | func pn(v: i64) -> i64 |
| 13 | func main() -> i64 |