code wiki / (root) / nx_surface_anchor_gate_t140.nx

nx_surface_anchor_gate_t140.nx

buildroot/runtime/nx_surface_anchor_gate_t140.nx

7428 B57 linesdepth 4pulls 6 transitivereach 4 importersview sourcekind tooltopic surface
docsdependenciesstructsconstsfunctions

dependencies 2 imports · 4 importers

nx_syscalls.nx nx_nxa_surface_anchor_t140.nx nx_surface_anchor_gate_t140.nx nx_eye_rim_artifact_t207.nx nx_eye_rim_probe_t207.nx nx_eye_surface_probe_t207.nx nx_surface_boundary_gate_t207.nx

imports: nx_syscalls.nxnx_nxa_surface_anchor_t140.nx

imported by: nx_eye_rim_artifact_t207.nxnx_eye_rim_probe_t207.nxnx_eye_surface_probe_t207.nxnx_surface_boundary_gate_t207.nx

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

main sys_openat_rd sys_lseek sys_close sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_read sys_munmap sa_check sa_put sys_write ↻ nsa_ratio_cmp nsa_unsigned_ratio_cmp nsa_triangle_y_v1 ngb_clip_gcd ngb_clip_product ngb_abs nsa_landmark_mesh_y_v1 nsa_triangle_y_v1 ↻ nsa_ratio_cmp ↻ nsa_landmark_y_v1 ngb_attach_source_v1 nsa_landmark_mesh_y_v1 ↻ sa_put ↻ sa_num sys_mmap ↻ sa_put ↻

structs

none

consts

none

functions

3func sa_put(s:*u8)->i64{var n:i64=0;while s[n]!=0{n=n+1};return sys_write(1,s,n)}
4func sa_num(x:i64)->i64{let p:*u8=sys_mmap(32) as *u8;if (p as i64)<=0{return -1};var n:i64=x;var i:i64=31;if n<0{sa_put("-");n=0-n};p[i]=0;i=i-1;if n==0{p[i]=48;i=i-1};while n>0{p[i]=(48+n%10) as u8;n=n/10;i=i-1};sa_put(((p as i64)+i+1) as *u8);return sys_munmap(p,32)}
5func sa_check(ok:i64,name:*u8,c:*i64)->i64{c[0]=c[0]+1;if ok==1{sa_put("PASS ")}else{sa_put("FAIL ");c[1]=c[1]+1};sa_put(name);sa_put("
called by 2: mainmain calls 1: sa_put
7func main(argc:i64,argv:*i64)->i64