code wiki / (root) / nx_bench_matmul.nx

nx_bench_matmul.nx

buildroot/runtime/nx_bench_matmul.nx

2520 B69 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind benchtopic bench
docsdependenciesstructsconstsfunctions

about

nx_bench_matmul.nx -- NishiLang twin of bench/xlang/matmul.c. Memory-bound integer matmul checksum (64-bit wrapping). Prints checksum then elapsed_us. Cm[r % (N*N)] === Cm[r] since r<REP<N*N, written directly. Checksum bit-exact vs gcc AND clang (3rd-party oracles). license_tier: ORIGINAL No hw writes. (nx_syscalls_x86_64.nx import REMOVED 2026-07-31, debt 1785528831: this file already gets the canonical syscall layer via nx_clock.nx -> syscalls.nx, so importing the raw-x86 module too put TWO syscall layers in one TU -- every wrapper twice, numbering picked by definition ORDER, silently.)

dependencies 1 imports · 0 importers

nx_clock.nx nx_bench_matmul.nx

imports: nx_clock.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_clock_monotonic_ns sys_mmap sys_clock_gettime_mono bm_emit_i64

structs

none

consts

10const K_MAGIC_6364136223846793005: i64 = 6364136223846793005
11const K_MAGIC_1442695040888963407: i64 = 1442695040888963407

functions

13func bm_emit_i64(fd: i64, n: i64) -> i64
called by 1: main
31func main() -> i64