code wiki / _hdl_build / nx_font_pioneer_benchmark.nx

nx_font_pioneer_benchmark.nx

buildroot/runtime/_hdl_build/nx_font_pioneer_benchmark.nx

11213 B124 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind benchtopic font
docsdependenciesstructsconstsfunctions

about

nx_font_pioneer_benchmark.nx -- the PIONEER FONT BENCHMARK. Composes the per-axis font-quality censuses (each liar-killed + Chrome-grounded) into ONE honest scorecard: is our sovereign stroke font at Chrome's professional standard, axis by axis, MEASURED? Reads the log lines the sub-censuses emit (weight ratio, faceting toward-hexagon, baseline bounce vs Chrome, OCR legibility) -> a scorecard + HTML. This is the "pioneer for benchmarking": run the 4 sub-censuses, then this. Honest about the axes still short of SOTA. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_font_pioneer_benchmark.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main pb_puts sys_write pb_read_kv sys_openat_rd sys_mmap sys_read sys_close pb_slen pb_num sys_mmap ↻ sys_write ↻ sys_mmap ↻ pb_app pb_appn sys_mmap ↻ pb_card pb_app ↻ sys_openat_wr sys_write ↻ sys_close ↻ sys_exit

structs

none

consts

8const K_MAGIC_1048576: i64 = 1048576
9const K_MAGIC_1050: i64 = 1050
10const K_MAGIC_16384: i64 = 16384

functions

12func 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: main calls 1: sys_write
13func pb_num(v: i64) -> i64 { let b: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" 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{b[i]=t[k-1-i];i=i+1} sys_write(1,b,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
14func pb_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: pb_read_kv
15func pb_app(buf: *u8, pos: i64, s: *u8) -> i64 { var p: i64=pos; var i: i64=0; while s[i]!=(0 as u8){buf[p]=s[i];p=p+1;i=i+1} return p }
called by 2: pb_cardmain
16func pb_appn(buf: *u8, pos: i64, v: i64) -> i64 { var p: i64=pos; var m: i64=v; if m<0{buf[p]=45 as u8;p=p+1;m=0-m} let t: *u8=sys_mmap(24); 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{buf[p]=t[k-1-i];p=p+1;i=i+1} return p }
called by 1: main calls 1: sys_mmap
20func pb_read_kv(path: *u8, key: *u8) -> i64
54func pb_card(buf: *u8, pos: i64, axis: *u8, val: *u8, color: *u8) -> i64
called by 1: main calls 1: pb_app
62func main() -> i64