code wiki / _hdl_build / nx_sharpgrade_core.nx

nx_sharpgrade_core.nx

buildroot/runtime/_hdl_build/nx_sharpgrade_core.nx

4256 B112 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_sharpgrade_core.nx -- SHARED CORE of the small-sharp MATH grade (extracted so nx_sharpgrade CLI AND nx_archcensus ecosystem-census both import it = DRY, rule 15; practicing the doctrine the grader enforces). sgc_grade(buf,n, out[3]) fills out[0]=funcs out[1]=components out[2]=distinct-prefixes; verdict is derived by the caller (comps<=1 SHARP | comps>1 & prefixes<=1 SHARP-LIB | else SPLIT-K). license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_sharpgrade_core.nx nx_archcensus.nx

imports: nx_syscalls.nx

imported by: nx_archcensus.nx

structs

none

consts

8const SGC_MAXF: i64 = 2048

functions

10func sgc_isid(c: i64) -> i64
17func sgc_find(parent: *i64, x: i64) -> i64
called by 2: sgc_unionsgc_grade
22func sgc_union(parent: *i64, a: i64, b: i64) -> i64
called by 1: sgc_grade calls 1: sgc_find
28func sgc_call_at(buf: *u8, p: i64, n: i64, name: *u8, no: i64, nl: i64) -> i64
called by 1: sgc_calls calls 1: sgc_isid
36func sgc_calls(buf: *u8, s: i64, e: i64, name: *u8, no: i64, nl: i64) -> i64
called by 1: sgc_grade calls 1: sgc_call_at
41func sgc_preflen(name: *u8, no: i64, nl: i64) -> i64
called by 1: sgc_pref_eq
46func sgc_pref_eq(name: *u8, ao: i64, al: i64, bo: i64, bl: i64) -> i64
called by 1: sgc_grade calls 1: sgc_preflen
55func sgc_grade(buf: *u8, n: i64, out: *i64) -> i64