code wiki / _hdl_build / _pw_probe.nx
_pw_probe.nx
buildroot/runtime/_hdl_build/_pw_probe.nx
about
_pw_probe.nx -- localizer for the pow kernel dd-log2 stage: prints t1/t2 and
the bigfloat truth log2(x). HISTORY: this probe proved the dd-log2 stage
BIT-PERFECT (t1+t2 == truth) on first-build RED, isolating the defect to the
exp recombination (extra z*t1p term) -- localize before optimizing.
dependencies 10 imports · 0 importers
imports: nx_syscalls.nxnx_f64.nxnx_f64_div.nxnx_f64_cvt.nxnx_bigfloat120.nxnx_bigfloat120_div.nxnx_bigfloat120_exp.nxnx_bigfloat120_ln.nxnx_bigfloat120_pow.nx_pe_f64pow.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
| 16 | func pb_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 17 | func pb_puthex(v: i64) -> i64 { let bb: *u8 = sys_mmap(20); var i: i64 = 0; while i < 16 { let nib: i64 = (v >> ((15 - i) * 4)) & 15; if nib < 10 { bb[i] = 48 + nib } else { bb[i] = 55 + nib } i = i + 1 } sys_write(1, bb, 16); return 0 } |
| 18 | func pb_row(name: *u8, v: i64) -> i64 { pb_puts(name); pb_puthex(v); pb_puts("\n" as *u8); return 0 } |
| 20 | func main() -> i64 |