code wiki / _hdl_build / nx_sitegate_emit_lib.nx
nx_sitegate_emit_lib.nx
buildroot/runtime/_hdl_build/nx_sitegate_emit_lib.nx
about
nx_sitegate_emit_lib.nx -- shared emit helpers (gw / gn / t_row) for the site & sweep gate organs,
extracted from the ~24 byte-identical copies funcmine surfaced (rule 15). Verbatim bodies -> behaviour-
preserving by construction (compile-clean = identical machine code). license_tier: ORIGINAL No hw writes.
dependencies 1 imports · 22 importers
diagram shows first 10 each side; +0 more imports, +12 more importers in the complete lists below.
imports: nx_syscalls.nx
imported by: nx_a11y_breadth_gate.nxnx_brand_aesthetic_gate.nxnx_brand_assets_gate.nxnx_brand_book_gate.nxnx_brand_conversion_gate.nxnx_brand_dark_gate.nxnx_brand_gallery_gate.nxnx_brand_manage_gate.nxnx_brand_packs_gate.nxnx_brand_polish_gate.nxnx_brand_preview.nxnx_brand_typescale_gate.nxnx_clarity_gate.nxnx_clean_url_gate.nxnx_editor_canvas_gate.nxnx_editor_loop_gate.nxnx_editor_render_gate.nxnx_editor_validate_gate.nxnx_exceed_standard_gate.nxnx_internal_sweep_gate.nxnx_site_import_gate.nxnx_site_migrate_gate.nx
structs
| none |
consts
| none |
functions
| 5 | func gw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 6 | func gn(v: i64) -> i64 { let bb: *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{bb[i]=t[k-1-i];i=i+1} sys_write(1,bb,k); return 0 } |
| 7 | func t_row(name: *u8, ok: i64, tot: *i64) -> i64 |