code wiki / _hdl_build / nx_mw_f32_probe.nx

nx_mw_f32_probe.nx

buildroot/runtime/_hdl_build/nx_mw_f32_probe.nx

2821 B58 linesdepth 2pulls 3 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

about

nx_mw_f32_probe.nx -- MINIMAL repro probe for the 2026-07-02 native-render regression (vox3d + mineworld gates suddenly render sky-only; projection r[2] sign wrong / scene displaced). Exercises the exact f32+m4 path project() uses, printing ACTUAL vs hand-computed EXPECTED. Diagnostic only. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_f32_hw.nx nx_mw_f32_probe.nx

imports: nx_syscalls.nxnx_f32_hw.nx

imported by: nobody (leaf or entry point)

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

main hw sys_write pn sys_mmap sys_write ↻ f32_int f32_add f32_of f32_mul fr f32_div f32_of ↻ f32_sub f32_neg pf pn ↻ f32_int ↻ f32_mul ↻ f32_of ↻ f32_neg ↻ sys_mmap ↻ m4_roty m4_identity f32_of ↻ f32_neg ↻ m4_rotx m4_identity ↻ f32_neg ↻ m4_mul f32_of ↻ f32_add ↻ f32_mul ↻ m4_vec4 f32_of ↻ f32_add ↻ f32_mul ↻

structs

none

consts

none

functions

7func hw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
8func pn(v: i64) -> i64
called by 2: pfmain calls 2: sys_mmapsys_write
20func fr(num: i64, den: i64) -> i64 { return f32_div(f32_of(num), f32_of(den)) }
called by 1: main calls 2: f32_divf32_of
22func pf(x: i64) -> i64 { pn(f32_int(f32_mul(x, f32_of(1000)))); return 0 }
called by 1: main calls 4: pnf32_intf32_mulf32_of
24func main() -> i64