nx_compare_shared_fit_lib_20260910.nx
buildroot/runtime/nx_compare_shared_fit_lib_20260910.nx
about
AUTO-EXTRACTED shared base (nx_oo_extract). license_tier: ORIGINAL No hw writes (Rule 26).
functions: w,wc,wn,wj,wq,kv_s,kv_n,c_read,streq,starts,scopy,splitpipe,wnote,rp_base,rp_publish,rp_json,refs_pass
dependencies 14 imports · 2 importers
diagram shows first 10 each side; +4 more imports, +0 more importers in the complete lists below.
imports: nx_syscalls.nxnx_symdecl_lib.nxnx_market_ladder_lib.nxnx_brand_tokens.nxnx_lineconf_lib.nxnx_estate_path.nxnx_imgattr_lib.nxnx_evprofile_lib.nxnx_bench_receipt_lib.nxnx_barfresh_lib.nxnx_compare_growth_json.nxnx_ladder_lib.nxnx_gauge_lib.nxnx_sha256.nx
imported by: nx_compare_shared_fit_matrix_20260910.nxnx_compare_shared_fit_sota_20260910.nx
structs
| 2166 | struct SgPlan |
consts
| 100 | const RV_NONE: i64 = 0 |
| 101 | const RV_CITED: i64 = 1 |
| 102 | const RV_UNCITED: i64 = 2 |
| 183 | const RP_NO: i64 = 0 |
| 184 | const RP_REVIEW: i64 = 1 |
| 185 | const RP_YES: i64 = 2 |
| 186 | const RP_KEYCAP: i64 = 128 |
| 305 | const SWL_DSTATE_CAP: i64 = 20480 // .debtstate sidecar read buffer. The NUL slot is DERIVED (CAP - 1) |
| 412 | const SWL_RELEASE_I64_MAX: i64 = 9223372036854775807 |
| 720 | const WP_ST_LANDED: i64 = 1 |
| 721 | const WP_ST_WATCHING: i64 = 2 |
| 722 | const WP_ST_PRESENT: i64 = 3 |
| 723 | const WP_ST_MISSING: i64 = 4 |
| 724 | const WP_ST_ABSENT: i64 = 5 |
| 848 | const PL_MAXROWS: i64 = 32 |
| 1092 | const SC_TOKCAP: i64 = 16384 |
| 1093 | const SC_BP_MD: i64 = 860 |
| 1094 | const SC_BP_SM: i64 = 640 |
| 1186 | const SC_CAP_SPLIT: i64 = 496 |
| 1429 | const BD_SECS_PER_DAY: i64 = 86400 |
| 1430 | const BD_DAYS_TO_CIVIL_SHIFT: i64 = 719468 // days from 0000-03-01 to 1970-01-01 (Hinnant, civil_from_days) |
| 1431 | const BD_DAYS_PER_ERA: i64 = 146097 |
| 1432 | const BD_DAYS_PER_4Y: i64 = 1460 |
| 1433 | const BD_DAYS_PER_100Y: i64 = 36524 |
| 1434 | const BD_DAYS_PER_ERA_LESS1: i64 = 146096 |
| 1435 | const BD_DAYS_PER_YEAR: i64 = 365 |
| 1436 | const BD_YEARS_PER_ERA: i64 = 400 |
| 1437 | const BD_MONTH_NUM: i64 = 153 |
| 1438 | const BD_MONTH_SHIFT: i64 = 2 |
| 1439 | const BD_MONTH_SCALE: i64 = 5 |
| 1440 | const BD_MARCH: i64 = 3 |
| 1441 | const BD_JAN_FROM_MP: i64 = 9 |
| 1442 | const BD_MP_WRAP: i64 = 10 |
| 1443 | const BD_FEB: i64 = 2 |
| 1444 | const BD_TEN: i64 = 10 |
| 1445 | const BD_SHA_SHOWN: i64 = 12 |
| 1490 | const PR_READ_CAP: i64 = 65536 // announces when it binds; a .proposed file is rows, not a corpus |
| 1491 | const PR_PATH_CAP: i64 = 600 // knowledge/compare/<dom>.proposed -- the reserve its sibling passes use |
| 1492 | const PR_I64_BYTES: i64 = 8 |
| 1493 | const PR_NF: i64 = 10 // fields per prop| row, from the writer's own emit order (ip_emit) |
| 1494 | const PR_SPLIT: i64 = 16 // field table: PR_NF plus room, so an over-long row is read whole rather than clipped to fit |
| 1495 | const PR_F_TAG: i64 = 0 |
| 1496 | const PR_F_EPOCH: i64 = 1 |
| 1497 | const PR_F_APPID: i64 = 2 |
| 1498 | const PR_F_NAME: i64 = 3 |
| 1499 | const PR_F_SIGNAL: i64 = 4 |
| 1500 | const PR_F_KIND: i64 = 5 |
| 1501 | const PR_F_TERM: i64 = 6 |
| 1502 | const PR_F_DOMAIN: i64 = 7 |
| 1503 | const PR_F_TITLE: i64 = 8 |
| 1504 | const PR_F_EVIDENCE: i64 = 9 |
| 1505 | const PR_CH_COMMENT: i64 = 35 |
| 1506 | const PR_CH_LF: i64 = 10 |
| 1507 | const PR_CH_COMMA: i64 = 44 |
| 1508 | const PR_CH_COLON: i64 = 58 |
| 1509 | const PR_CH_LBRACE: i64 = 123 |
| 1510 | const PR_CH_RBRACE: i64 = 125 |
| 1511 | const PR_CH_LBRACKET: i64 = 91 |
| 1512 | const PR_CH_RBRACKET: i64 = 93 |
| 1518 | const PR_NAME_CAP: i64 = 256 |
| 1519 | const PR_NAME_DIR: *u8 = "knowledge/reviews/steam/" |
| 1520 | const PR_NAME_DIR_UP: *u8 = "../knowledge/reviews/steam/" |
| 1521 | const PR_NAME_SUFFIX: *u8 = ".name" |
| 1631 | const FI_READ_CAP: i64 = 262144 // announces when it binds: a .field is rows, not a corpus |
| 1632 | const FI_PATH_CAP: i64 = 600 |
| 1633 | const FI_I64_BYTES: i64 = 8 |
| 1634 | const FI_NF: i64 = 7 // rival|name|seeds_hit|mentions|first_seed|link|kind (nx_field_lib fl_emit) |
| 1635 | const FI_SPLIT: i64 = 12 |
| 1636 | const FI_F_TAG: i64 = 0 |
| 1637 | const FI_F_NAME: i64 = 1 |
| 1638 | const FI_F_SEEDS: i64 = 2 |
| 1639 | const FI_F_MENTIONS: i64 = 3 |
| 1640 | const FI_F_FIRST: i64 = 4 |
| 1641 | const FI_F_LINK: i64 = 5 |
| 1642 | const FI_F_KIND: i64 = 6 |
| 1643 | const FI_SHOW: i64 = 60 // rows rendered; the rest are COUNTED and the stats line says shown of count |
| 1644 | const FI_COLS_MAX: i64 = 16 |
| 1645 | const FI_CH_COMMENT: i64 = 35 |
| 1646 | const FI_CH_LF: i64 = 10 |
| 1647 | const FI_CH_PIPE: i64 = 124 |
| 1648 | const FI_CH_COMMA: i64 = 44 |
| 1649 | const FI_CH_COLON: i64 = 58 |
| 1650 | const FI_CH_LBRACE: i64 = 123 |
| 1651 | const FI_CH_RBRACE: i64 = 125 |
| 1652 | const FI_CH_LBRACKET: i64 = 91 |
| 1653 | const FI_CH_RBRACKET: i64 = 93 |
| 1654 | const FI_UPPER_A: i64 = 65 |
| 1655 | const FI_UPPER_Z: i64 = 90 |
| 1656 | const FI_CASE_DELTA: i64 = 32 |
| 1812 | const GP_PATH_CAP: i64 = 600 |
| 1813 | const GP_READ_CAP: i64 = 65536 |
| 1814 | const GP_SPLIT: i64 = 8 |
| 1815 | const GP_NF: i64 = 5 |
| 1816 | const GP_F_LABEL: i64 = 1 |
| 1817 | const GP_F_PATH: i64 = 2 |
| 1818 | const GP_F_CAD: i64 = 3 |
| 1819 | const GP_F_NOTE: i64 = 4 |
| 1820 | const GP_ROW_CAP: i64 = 1024 |
| 1821 | const GP_CH_NL: i64 = 10 |
| 1822 | const GP_CH_HASH: i64 = 35 |
| 1823 | const GP_CH_COMMA: i64 = 44 |
| 1824 | const GP_CH_COLON: i64 = 58 |
| 1825 | const GP_CH_LBRACKET: i64 = 91 |
| 1826 | const GP_CH_RBRACKET: i64 = 93 |
| 1827 | const GP_CH_LBRACE: i64 = 123 |
| 1828 | const GP_CH_RBRACE: i64 = 125 |
| 1941 | const GX_FEED: *u8 = "knowledge/recordgaps.conf.rows" |
| 1942 | const GX_STAMP: *u8 = "knowledge/recordgaps.conf.stamp" |
| 1943 | const GX_READ_CAP: i64 = 4194304 |
| 1944 | const GX_NF: i64 = 5 |
| 1945 | const GX_F_KIND: i64 = 0 |
| 1946 | const GX_F_NAME: i64 = 1 |
| 1947 | const GX_F_BOARD: i64 = 2 |
| 1948 | const GX_F_SRC: i64 = 3 |
| 1949 | const GX_F_EV: i64 = 4 |
| 1950 | const GX_HUB: *u8 = "ecosystem" |
| 1951 | const GX_UNASSIGNED: *u8 = "UNASSIGNED" |
| 2163 | const SGP_FIELDS: i64 = 8 |
| 2164 | const SGP_PATH_CAP: i64 = 600 |
| 2165 | const SGP_I64_MAX: i64 = 9223372036854775807 |
functions
| 20 | func w(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 } |
| 21 | func wc(fd: i64, code: i64) -> i64 { let t: *u8 = sys_mmap(2); t[0] = code as u8; sys_write(fd, t, 1); return 0 } |
| 22 | func wn(fd: i64, v: i64) -> i64 called by 25: kv_nsc_heading_opensc_heading_closeplan_pass_headingwatch_passpl_cell+19 calls 3: wsys_mmapsys_write |
| 28 | func wj(fd: i64, s: *u8) -> i64 |
| 35 | func wq(fd: i64) -> i64 { wc(fd, 34); return 0 } |
| 36 | func kv_s(fd: i64, key: *u8, val: *u8) -> i64 { wq(fd); w(fd, key); wq(fd); wc(fd, 58); wq(fd); wj(fd, val); wq(fd); return 0 } called by 12: rp_jsonwatch_passevj_passprop_pass_headingfield_pass_headinggauge_pass_heading+6 calls 4: wqwwcwj |
| 37 | func kv_n(fd: i64, key: *u8, v: i64) -> i64 { wq(fd); w(fd, key); wq(fd); wc(fd, 58); wn(fd, v); return 0 } called by 10: evj_passprop_pass_headingfield_pass_headinggauge_pass_headinggaps_pass_headingbench_pass_heading+4 calls 4: wqwwcwn |
| 38 | func c_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 44 | func streq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while a[i] != (0 as u8) { if a[i] != b[i] { return 0 } i = i + 1 } if b[i] != (0 as u8) { return 0 } return 1 } |
| 45 | func starts(s: *u8, pfx: *u8) -> i64 { var i: i64 = 0; while pfx[i] != (0 as u8) { if s[i] != pfx[i] { return 0 } i = i + 1 } return 1 } |
| 46 | func scopy(dst: *u8, doff: i64, src: *u8) -> i64 { var i: i64 = 0; while src[i] != (0 as u8) { dst[doff+i] = src[i]; i = i + 1 } return doff + i } |
| 47 | func splitpipe(s: *u8, fld: *i64, maxf: i64) -> i64 |
| 52 | func wnote(fd: i64, s: *u8) -> i64 called by 11: plan_pass_headingwatch_passprop_pass_headingfield_pass_headinggauge_pass_headinggaps_pass_heading+5 calls 2: wwc |
| 103 | func rv_code(s: *u8) -> i64 called by 1: rv_class |
| 111 | func rv_note_cited(note: *u8) -> i64 |
| 116 | func rv_class(note: *u8, rf: *i64, rr: i64, stride: i64, ncol: i64) -> i64 |
| 126 | func rv_grade_claims(g: *u8) -> i64 { if g[0] == (66 as u8) { return 1 } if g[0] == (89 as u8) { return 1 } if g[0] == (126 as u8) { return 1 } return 0 } called by 1: rv_class_grades |
| 127 | func rv_class_grades(note: *u8, rf: *i64, rr: i64, stride: i64, first: i64, count: i64) -> i64 |
| 135 | func rv_name(c: i64) -> *u8 |
| 141 | func rp_base(p: *u8) -> *u8 |
| 147 | func rp_publish(mir: *u8, dom: *u8) -> i64 |
| 191 | func rp_may_republish(cls: *u8) -> i64 |
| 210 | func rp_publish_gated(mir: *u8, dom: *u8, cls: *u8) -> i64 |
| 218 | func rp_json(fld: *i64, count: i64) -> i64 |
| 236 | func rp_html(fld: *i64, count: i64, dom: *u8, hdr: *u8) -> i64 |
| 254 | func refs_pass(path: *u8, bufz: *u8, capz: i64, mode: i64, dom: *u8, hdr: *u8) -> i64 |
| 312 | func dstate(fd: i64, id: *u8, ds: *u8, dn: i64) -> i64 |
| 355 | func wlow(fd: i64, s: *u8) -> i64 |
| 380 | func swl_bar_state(fd: i64, buf: *u8, bidoff: *i64, bidlen: *i64, bym: *i64, bst: *i64, nb: i64, id: *u8) -> i64 |
| 399 | func swl_rung_deps(fd: i64, buf: *u8, ridoff: *i64, ridlen: *i64, rdoff: *i64, rdlen: *i64, nr: i64, id: *u8) -> i64 |
| 413 | func swl_release_epoch(s: *u8) -> i64 called by 1: swl_release_candidate |
| 430 | func swl_release_candidate(epoch: *u8, kind: *u8, entry: *u8, current: i64, now: i64) -> i64 |
| 444 | func sc_heading_level(level: i64) -> i64 { if level<1 { return 2 }; if level>6 { return 2 }; return level } |
| 445 | func sc_heading_open(fd: i64, level: i64, attrs: *u8) -> i64 |
| 448 | func sc_heading_close(fd: i64, level: i64) -> i64 |
| 453 | func sc_plan_table_open(fd: i64, label: *u8) -> i64 |
| 456 | func sc_plan_table_close(fd: i64) -> i64 { w(fd, "</tbody></table></div>" as *u8); return 0 } |
| 458 | func plan_pass(path: *u8, bufz: *u8, capz: i64, phase: i64) -> i64 { return plan_pass_heading(path, bufz, capz, phase, 2) } calls 1: plan_pass_heading |
| 460 | func sc_plan_row_table(phase: i64, kind: *u8, fields: i64) -> i64 |
| 484 | func plan_pass_heading(path: *u8, bufz: *u8, capz: i64, phase: i64, heading_level: i64) -> i64 |
| 725 | func wp_status_text(st: i64) -> *u8 called by 1: watch_pass |
| 732 | func wp_status_class(st: i64) -> *u8 called by 1: watch_pass |
| 739 | func wp_classify(organ: *u8, sym: *u8, rule_out: *i64) -> i64 |
| 749 | func watch_pass(mpath: *u8, fd: i64, mode: i64) -> i64 |
| 850 | func pl_jint(buf: *u8, n: i64, from: i64, key: *u8) -> i64 called by 1: ppp_pass_heading |
| 876 | func pl_off(buf: *u8, n: i64, name: *u8) -> i64 called by 1: ppp_pass_heading |
| 889 | func pl_cell(fd: i64, v: i64) -> i64 |
| 895 | func ppp_pass(dom: *u8, fd: i64, mode: i64) -> i64 { return ppp_pass_heading(dom, fd, mode, 2) } |
| 896 | func ppp_pass_heading(dom: *u8, fd: i64, mode: i64, heading_level: i64) -> i64 |
| 1099 | func sc_brand() -> *u8 called by 1: sc_theme_pass |
| 1106 | func sc_dark_open() -> *u8 { return "@media(prefers-color-scheme:dark){:root{\n" as *u8 } called by 1: sc_theme_pass |
| 1107 | func sc_dark_close() -> *u8 { return "}}\n" as *u8 } called by 1: sc_theme_pass |
| 1109 | func sc_theme_pass(fd: i64) -> i64 |
| 1188 | func sc_production_open(fd: i64, id: *u8, title: *u8, purpose: *u8) -> i64 |
| 1192 | func sc_production_close(fd: i64) -> i64 { w(fd, "</div></section>\n" as *u8); return 0 } |
| 1194 | func sc_layout_pass(fd: i64) -> i64 |
| 1294 | func evj_class(fired: i64, name: *u8, n: *i64) -> i64 |
| 1302 | func evj_pass(dom: *u8) -> i64 |
| 1447 | func bd_ymd(epoch: i64, dst: *u8, off: i64) -> i64 |
| 1470 | func bd_sha_short(fd: i64, s: *u8) -> i64 |
| 1475 | func bd_status_class(st: i64) -> *u8 called by 1: bench_pass_heading |
| 1522 | func pr_name_read(dir: *u8, appid: *u8, out: *u8, cap: i64) -> i64 |
| 1534 | func pr_name_lookup(appid: *u8, out: *u8, cap: i64) -> i64 |
| 1539 | func prop_pass(dom: *u8, fd: i64, mode: i64) -> i64 { return prop_pass_heading(dom, fd, mode, 2) } |
| 1540 | func prop_pass_heading(dom: *u8, fd: i64, mode: i64, heading_level: i64) -> i64 |
| 1657 | func fi_lc(c: i64) -> i64 { if c >= FI_UPPER_A { if c <= FI_UPPER_Z { return c + FI_CASE_DELTA } } return c } called by 1: fi_ci_contains |
| 1659 | func fi_ci_contains(hay: *u8, needle: *u8) -> i64 |
| 1676 | func fi_head_word(col: *u8, out: *u8, cap: i64) -> i64 called by 1: field_pass_heading |
| 1684 | func field_pass(dom: *u8, fd: i64, mode: i64, colv: *i64, ncols_in: i64) -> i64 { return field_pass_heading(dom, fd, mode, colv, ncols_in, 2) } |
| 1685 | func field_pass_heading(dom: *u8, fd: i64, mode: i64, colv: *i64, ncols_in: i64, heading_level: i64) -> i64 |
| 1829 | func gauge_pass(dom: *u8, fd: i64, mode: i64) -> i64 { return gauge_pass_heading(dom, fd, mode, 2) } |
| 1830 | func gauge_pass_heading(dom: *u8, fd: i64, mode: i64, heading_level: i64) -> i64 |
| 1952 | func gaps_pass(dom: *u8, fd: i64, mode: i64) -> i64 { return gaps_pass_heading(dom, fd, mode, 2) } |
| 1953 | func gaps_pass_heading(dom: *u8, fd: i64, mode: i64, heading_level: i64) -> i64 called by 2: gaps_passmain calls 18: sys_mmapep_artifact_pathc_readsys_now_realtime_secscopyga_judge+12 |
| 2052 | func bench_pass(dom: *u8, fd: i64, mode: i64) -> i64 { return bench_pass_heading(dom, fd, mode, 2) } |
| 2053 | func bench_pass_heading(dom: *u8, fd: i64, mode: i64, heading_level: i64) -> i64 |
| 2194 | func sg_len(s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { i = i + 1 } return i } |
| 2195 | func sg_id(s: *u8, n: i64) -> i64 |
| 2210 | func sg_split(s: *u8, f: *i64, capacity: i64, delimiter: i64) -> i64 |
| 2218 | func sg_decimal(s: *u8) -> i64 called by 1: sg_prefix_decimal |
| 2228 | func sg_sha(b: *u8, n: i64) -> *u8 |
| 2237 | func sg_find(m: *SgPlan, name: *u8, length: i64) -> i64 |
| 2250 | func sg_prefix_decimal(s: *u8, key: *u8) -> i64 |
| 2254 | func sg_rank(m: *SgPlan, raw: *u8, n: i64) -> i64 |
| 2312 | func sg_parse(raw: *u8, n: i64, rank: *u8, rn: i64, matrix: *u8, mn: i64) -> *SgPlan |
| 2417 | func sg_valid(m: *SgPlan) -> i64 |
| 2422 | func sg_rank_state(m: *SgPlan) -> *u8 |
| 2431 | func sg_load(domain: *u8) -> *SgPlan |
| 2455 | func sg_growth_json(g: *CgModel,fd: i64) -> i64 |
| 2471 | func sg_growth_text(g: *CgModel,row: i64,col: i64,fd: i64) -> i64 |
| 2479 | func sg_growth_detail(g: *CgModel,row: i64,col: i64,label: *u8,fd: i64) -> i64 |
| 2482 | func sg_growth_html(g: *CgModel,fd: i64,heading: i64) -> i64 called by 1: sg_html_heading calls 6: wsc_heading_opensc_heading_closewnsg_growth_textsg_growth_detail |
| 2533 | func sg_json(m: *SgPlan, fd: i64) -> i64 |
| 2571 | func sg_text(fd: i64, s: *u8) -> i64 |
| 2582 | func sg_html(m: *SgPlan, fd: i64) -> i64 { return sg_html_heading(m, fd, 2) } calls 1: sg_html_heading |
| 2583 | func sg_html_heading(m: *SgPlan, fd: i64, heading_level: i64) -> i64 |
| 2618 | func sg_css(fd: i64) -> i64 |