code wiki / _hdl_build / _pw_probe.nx

_pw_probe.nx

buildroot/runtime/_hdl_build/_pw_probe.nx

1747 B41 linesdepth 7pulls 11 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_f64.nx nx_f64_div.nx nx_f64_cvt.nx nx_bigfloat120.nx nx_bigfloat120_div.nx nx_bigfloat120_exp.nx nx_bigfloat120_ln.nx nx_bigfloat120_pow.nx _pe_f64pow.nx _pw_probe.nx

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

main pb_row pb_puts sys_write pb_puthex sys_mmap sys_write ↻ sys_mmap ↻ _pw_log2m nx_f64_sub nx_f64_add nx_f64_classify nx_f64_exp_field nx_f64_mant_field nx_f64_sign nx_f64_mant_field ↻ nx_f64_exp_field ↻ _f64_round_pack nx_f64_neg nx_f64_div nx_f64_classify ↻ nx_f64_sign ↻ nx_f64_mant_field ↻ nx_f64_exp_field ↻ _f64_round_pack ↻ nx_f64_add ↻ nx_f64_mul nx_f64_classify ↻ nx_f64_sign ↻ nx_f64_mant_field ↻ nx_f64_exp_field ↻ _f64_round_pack ↻ nx_i64_to_f64 _f64_round_pack ↻ nx_f64_add ↻ bf_new sys_mmap ↻ bfp_ln_big bf_sqrt2_cut bf_new ↻

structs

none

consts

none

functions

16func 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 }
called by 1: pb_row calls 1: sys_write
17func 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 }
called by 1: pb_row calls 2: sys_mmapsys_write
18func pb_row(name: *u8, v: i64) -> i64 { pb_puts(name); pb_puthex(v); pb_puts("\n" as *u8); return 0 }
called by 1: main calls 2: pb_putspb_puthex
20func main() -> i64