code wiki / _hdl_build / nx_sharpgrade_core.nx
nx_sharpgrade_core.nx
buildroot/runtime/_hdl_build/nx_sharpgrade_core.nx
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
imports: nx_syscalls.nx
imported by: nx_archcensus.nx
structs
| none |
consts
| 8 | const SGC_MAXF: i64 = 2048 |
functions
| 10 | func sgc_isid(c: i64) -> i64 |
| 17 | func sgc_find(parent: *i64, x: i64) -> i64 |
| 22 | func sgc_union(parent: *i64, a: i64, b: i64) -> i64 |
| 28 | func sgc_call_at(buf: *u8, p: i64, n: i64, name: *u8, no: i64, nl: i64) -> i64 |
| 36 | func sgc_calls(buf: *u8, s: i64, e: i64, name: *u8, no: i64, nl: i64) -> i64 |
| 41 | func sgc_preflen(name: *u8, no: i64, nl: i64) -> i64 called by 1: sgc_pref_eq |
| 46 | func sgc_pref_eq(name: *u8, ao: i64, al: i64, bo: i64, bl: i64) -> i64 |
| 55 | func sgc_grade(buf: *u8, n: i64, out: *i64) -> i64 |