code wiki / _hdl_build / _f64_erfc_gate.nx

_f64_erfc_gate.nx

buildroot/runtime/_hdl_build/_f64_erfc_gate.nx

3054 B60 linesdepth 6pulls 12 transitivereach 0 importersview sourcekind gate/prooftopic f64
docsdependenciesstructsconstsfunctions

about

_f64_erfc_gate.nx -- ULP gate for the f64 erfc kernel vs the sovereign 120-bit erfc oracle (ME2-ERF-002). For x = k/16, k=28..96 (1.75 .. 6.0) compares nx_f64_erfc bits against the bf_erfc oracle rounded to f64. RUNG-1 BAR: max ULP <= 4 (matches erf). Durable: F64ERFC-GATE + ERFCGATE rows -> knowledge/status/math_engine.log. license_tier: ORIGINAL

dependencies 6 imports · 0 importers

nx_syscalls.nx nx_bigfloat120.nx nx_bigfloat120_div.nx nx_bigfloat120_trig.nx nx_bigfloat120_erfc.nx _pe_f64erfc.nx _f64_erfc_gate.nx

imports: nx_syscalls.nxnx_bigfloat120.nxnx_bigfloat120_div.nxnx_bigfloat120_trig.nxnx_bigfloat120_erfc.nx_pe_f64erfc.nx

imported by: nobody (leaf or entry point)

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

main fg_p sys_write bf_new sys_mmap bf_set_int bf_div_small bf_is_zero bf_copy bf_norm bf_to_f64 bf_is_zero ↻ bf_erfc bf_new ↻ bf_set_int ↻ bf_mul bf_is_zero ↻ bf_copy ↻ sys_mmap ↻ bfc_exp bf_new ↻ bf_set_int ↻ bf_copy ↻ bf_mul ↻ bf_div_small ↻ bf_add bf_is_zero ↻ bf_copy ↻ sys_mmap ↻ bf_shr2 bf_norm ↻ bf_div bf_is_zero ↻ bf_copy ↻ bf_norm ↻ bf_pi bf_new ↻ bf_atan_inv bf_new ↻ bf_set_int ↻

structs

none

consts

none

functions

13func fg_p(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
14func fg_f(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 }
called by 1: main calls 1: sys_write
15func fg_n(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m; sys_write(fd,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1}; while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(fd,bb,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
17func fg_ulp(a: i64, b: i64) -> i64 { if a >= b { return a - b } return b - a }
called by 1: main
19func main() -> i64