code wiki / (root) / nx_swcompare_ladder_candidate.nx

nx_swcompare_ladder_candidate.nx

buildroot/runtime/nx_swcompare_ladder_candidate.nx

163754 B2481 linesdepth 5pulls 19 transitivereach 1 importersview sourcekind librarytopic swcompare
docsdependenciesstructsconstsfunctions

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 13 imports · 1 importers

nx_syscalls.nx nx_symdecl_lib.nx nx_market_ladder_lib.nx nx_brand_tokens.nx nx_lineconf_lib.nx nx_estate_path.nx nx_imgattr_lib.nx nx_evprofile_lib.nx nx_bench_receipt_lib.nx nx_barfresh_lib.nx nx_swcompare_ladder_candidate. nx_compare_ladder_projection_gate.

diagram shows first 10 each side; +3 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_ladder_lib.nxnx_gauge_lib.nxnx_sha256.nx

imported by: nx_compare_ladder_projection_gate.nx

structs

2114struct SgPlan

consts

99const RV_NONE: i64 = 0
100const RV_CITED: i64 = 1
101const RV_UNCITED: i64 = 2
182const RP_NO: i64 = 0
183const RP_REVIEW: i64 = 1
184const RP_YES: i64 = 2
185const RP_KEYCAP: i64 = 128
304const SWL_DSTATE_CAP: i64 = 20480 // .debtstate sidecar read buffer. The NUL slot is DERIVED (CAP - 1)
411const SWL_RELEASE_I64_MAX: i64 = 9223372036854775807
683const WP_ST_LANDED: i64 = 1
684const WP_ST_WATCHING: i64 = 2
685const WP_ST_PRESENT: i64 = 3
686const WP_ST_MISSING: i64 = 4
687const WP_ST_ABSENT: i64 = 5
811const PL_MAXROWS: i64 = 32
1054const SC_TOKCAP: i64 = 16384
1055const SC_BP_MD: i64 = 860
1056const SC_BP_SM: i64 = 640
1148const SC_CAP_SPLIT: i64 = 496
1382const BD_SECS_PER_DAY: i64 = 86400
1383const BD_DAYS_TO_CIVIL_SHIFT: i64 = 719468 // days from 0000-03-01 to 1970-01-01 (Hinnant, civil_from_days)
1384const BD_DAYS_PER_ERA: i64 = 146097
1385const BD_DAYS_PER_4Y: i64 = 1460
1386const BD_DAYS_PER_100Y: i64 = 36524
1387const BD_DAYS_PER_ERA_LESS1: i64 = 146096
1388const BD_DAYS_PER_YEAR: i64 = 365
1389const BD_YEARS_PER_ERA: i64 = 400
1390const BD_MONTH_NUM: i64 = 153
1391const BD_MONTH_SHIFT: i64 = 2
1392const BD_MONTH_SCALE: i64 = 5
1393const BD_MARCH: i64 = 3
1394const BD_JAN_FROM_MP: i64 = 9
1395const BD_MP_WRAP: i64 = 10
1396const BD_FEB: i64 = 2
1397const BD_TEN: i64 = 10
1398const BD_SHA_SHOWN: i64 = 12
1443const PR_READ_CAP: i64 = 65536 // announces when it binds; a .proposed file is rows, not a corpus
1444const PR_PATH_CAP: i64 = 600 // knowledge/compare/<dom>.proposed -- the reserve its sibling passes use
1445const PR_I64_BYTES: i64 = 8
1446const PR_NF: i64 = 10 // fields per prop| row, from the writer's own emit order (ip_emit)
1447const PR_SPLIT: i64 = 16 // field table: PR_NF plus room, so an over-long row is read whole rather than clipped to fit
1448const PR_F_TAG: i64 = 0
1449const PR_F_EPOCH: i64 = 1
1450const PR_F_APPID: i64 = 2
1451const PR_F_NAME: i64 = 3
1452const PR_F_SIGNAL: i64 = 4
1453const PR_F_KIND: i64 = 5
1454const PR_F_TERM: i64 = 6
1455const PR_F_DOMAIN: i64 = 7
1456const PR_F_TITLE: i64 = 8
1457const PR_F_EVIDENCE: i64 = 9
1458const PR_CH_COMMENT: i64 = 35
1459const PR_CH_LF: i64 = 10
1460const PR_CH_COMMA: i64 = 44
1461const PR_CH_COLON: i64 = 58
1462const PR_CH_LBRACE: i64 = 123
1463const PR_CH_RBRACE: i64 = 125
1464const PR_CH_LBRACKET: i64 = 91
1465const PR_CH_RBRACKET: i64 = 93
1471const PR_NAME_CAP: i64 = 256
1472const PR_NAME_DIR: *u8 = "knowledge/reviews/steam/"
1473const PR_NAME_DIR_UP: *u8 = "../knowledge/reviews/steam/"
1474const PR_NAME_SUFFIX: *u8 = ".name"
1583const FI_READ_CAP: i64 = 262144 // announces when it binds: a .field is rows, not a corpus
1584const FI_PATH_CAP: i64 = 600
1585const FI_I64_BYTES: i64 = 8
1586const FI_NF: i64 = 7 // rival|name|seeds_hit|mentions|first_seed|link|kind (nx_field_lib fl_emit)
1587const FI_SPLIT: i64 = 12
1588const FI_F_TAG: i64 = 0
1589const FI_F_NAME: i64 = 1
1590const FI_F_SEEDS: i64 = 2
1591const FI_F_MENTIONS: i64 = 3
1592const FI_F_FIRST: i64 = 4
1593const FI_F_LINK: i64 = 5
1594const FI_F_KIND: i64 = 6
1595const FI_SHOW: i64 = 60 // rows rendered; the rest are COUNTED and the stats line says shown of count
1596const FI_COLS_MAX: i64 = 16
1597const FI_CH_COMMENT: i64 = 35
1598const FI_CH_LF: i64 = 10
1599const FI_CH_PIPE: i64 = 124
1600const FI_CH_COMMA: i64 = 44
1601const FI_CH_COLON: i64 = 58
1602const FI_CH_LBRACE: i64 = 123
1603const FI_CH_RBRACE: i64 = 125
1604const FI_CH_LBRACKET: i64 = 91
1605const FI_CH_RBRACKET: i64 = 93
1606const FI_UPPER_A: i64 = 65
1607const FI_UPPER_Z: i64 = 90
1608const FI_CASE_DELTA: i64 = 32
1763const GP_PATH_CAP: i64 = 600
1764const GP_READ_CAP: i64 = 65536
1765const GP_SPLIT: i64 = 8
1766const GP_NF: i64 = 5
1767const GP_F_LABEL: i64 = 1
1768const GP_F_PATH: i64 = 2
1769const GP_F_CAD: i64 = 3
1770const GP_F_NOTE: i64 = 4
1771const GP_ROW_CAP: i64 = 1024
1772const GP_CH_NL: i64 = 10
1773const GP_CH_HASH: i64 = 35
1774const GP_CH_COMMA: i64 = 44
1775const GP_CH_COLON: i64 = 58
1776const GP_CH_LBRACKET: i64 = 91
1777const GP_CH_RBRACKET: i64 = 93
1778const GP_CH_LBRACE: i64 = 123
1779const GP_CH_RBRACE: i64 = 125
1891const GX_FEED: *u8 = "knowledge/recordgaps.conf.rows"
1892const GX_STAMP: *u8 = "knowledge/recordgaps.conf.stamp"
1893const GX_READ_CAP: i64 = 4194304
1894const GX_NF: i64 = 5
1895const GX_F_KIND: i64 = 0
1896const GX_F_NAME: i64 = 1
1897const GX_F_BOARD: i64 = 2
1898const GX_F_SRC: i64 = 3
1899const GX_F_EV: i64 = 4
1900const GX_HUB: *u8 = "ecosystem"
1901const GX_UNASSIGNED: *u8 = "UNASSIGNED"
2111const SGP_FIELDS: i64 = 8
2112const SGP_PATH_CAP: i64 = 600
2113const SGP_I64_MAX: i64 = 9223372036854775807

functions

19func 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 }
called by 27: wnkv_skv_nwnoterp_jsonrp_html+21 calls 1: sys_write
20func wc(fd: i64, code: i64) -> i64 { let t: *u8 = sys_mmap(2); t[0] = code as u8; sys_write(fd, t, 1); return 0 }
21func wn(fd: i64, v: i64) -> i64
27func wj(fd: i64, s: *u8) -> i64
called by 4: kv_sppp_passevj_classsg_json calls 1: wc
34func wq(fd: i64) -> i64 { wc(fd, 34); return 0 }
35func 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 }
36func kv_n(fd: i64, key: *u8, v: i64) -> i64 { wq(fd); w(fd, key); wq(fd); wc(fd, 58); wn(fd, v); return 0 }
37func c_read(path: *u8, buf: *u8, cap: i64) -> i64
43func 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 }
44func 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 }
45func 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 }
46func splitpipe(s: *u8, fld: *i64, maxf: i64) -> i64
51func wnote(fd: i64, s: *u8) -> i64
102func rv_code(s: *u8) -> i64
called by 1: rv_class
110func rv_note_cited(note: *u8) -> i64
115func rv_class(note: *u8, rf: *i64, rr: i64, stride: i64, ncol: i64) -> i64
125func 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
126func rv_class_grades(note: *u8, rf: *i64, rr: i64, stride: i64, first: i64, count: i64) -> i64
134func rv_name(c: i64) -> *u8
140func rp_base(p: *u8) -> *u8
called by 2: rp_publishrp_html
146func rp_publish(mir: *u8, dom: *u8) -> i64
190func rp_may_republish(cls: *u8) -> i64
209func rp_publish_gated(mir: *u8, dom: *u8, cls: *u8) -> i64
217func rp_json(fld: *i64, count: i64) -> i64
called by 1: refs_pass calls 4: wcwqwkv_s
235func rp_html(fld: *i64, count: i64, dom: *u8, hdr: *u8) -> i64
253func refs_pass(path: *u8, bufz: *u8, capz: i64, mode: i64, dom: *u8, hdr: *u8) -> i64
311func dstate(fd: i64, id: *u8, ds: *u8, dn: i64) -> i64
called by 1: plan_pass calls 2: wwc
354func wlow(fd: i64, s: *u8) -> i64
379func swl_bar_state(fd: i64, buf: *u8, bidoff: *i64, bidlen: *i64, bym: *i64, bst: *i64, nb: i64, id: *u8) -> i64
398func swl_rung_deps(fd: i64, buf: *u8, ridoff: *i64, ridlen: *i64, rdoff: *i64, rdlen: *i64, nr: i64, id: *u8) -> i64
called by 1: plan_pass calls 3: ld_span_issys_writew
412func swl_release_epoch(s: *u8) -> i64
429func swl_release_candidate(epoch: *u8, kind: *u8, entry: *u8, current: i64, now: i64) -> i64
called by 1: plan_pass calls 2: streqswl_release_epoch
441func plan_pass(path: *u8, bufz: *u8, capz: i64, phase: i64) -> i64
688func wp_status_text(st: i64) -> *u8
called by 1: watch_pass
695func wp_status_class(st: i64) -> *u8
called by 1: watch_pass
702func wp_classify(organ: *u8, sym: *u8, rule_out: *i64) -> i64
called by 1: watch_pass calls 3: streqstartssd_present
712func watch_pass(mpath: *u8, fd: i64, mode: i64) -> i64
813func pl_jint(buf: *u8, n: i64, from: i64, key: *u8) -> i64
called by 1: ppp_pass
839func pl_off(buf: *u8, n: i64, name: *u8) -> i64
called by 1: ppp_pass
852func pl_cell(fd: i64, v: i64) -> i64
called by 1: ppp_pass calls 2: wwn
858func ppp_pass(dom: *u8, fd: i64, mode: i64) -> i64
1061func sc_brand() -> *u8
called by 1: sc_theme_pass
1068func sc_dark_open() -> *u8 { return "@media(prefers-color-scheme:dark){:root{\n" as *u8 }
called by 1: sc_theme_pass
1069func sc_dark_close() -> *u8 { return "}}\n" as *u8 }
called by 1: sc_theme_pass
1071func sc_theme_pass(fd: i64) -> i64
1149func sc_layout_pass(fd: i64) -> i64
calls 3: wwnsg_css
1247func evj_class(fired: i64, name: *u8, n: *i64) -> i64
called by 1: evj_pass calls 3: wcwqwj
1255func evj_pass(dom: *u8) -> i64
1400func bd_ymd(epoch: i64, dst: *u8, off: i64) -> i64
1423func bd_sha_short(fd: i64, s: *u8) -> i64
called by 1: bench_pass calls 1: wc
1428func bd_status_class(st: i64) -> *u8
called by 1: bench_pass
1475func pr_name_read(dir: *u8, appid: *u8, out: *u8, cap: i64) -> i64
called by 1: pr_name_lookup calls 3: sys_mmapscopyc_read
1487func pr_name_lookup(appid: *u8, out: *u8, cap: i64) -> i64
called by 1: prop_pass calls 1: pr_name_read
1492func prop_pass(dom: *u8, fd: i64, mode: i64) -> i64
1609func 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
1611func fi_ci_contains(hay: *u8, needle: *u8) -> i64
called by 1: field_pass calls 1: fi_lc
1628func fi_head_word(col: *u8, out: *u8, cap: i64) -> i64
called by 1: field_pass
1636func field_pass(dom: *u8, fd: i64, mode: i64, colv: *i64, ncols_in: i64) -> i64
1780func gauge_pass(dom: *u8, fd: i64, mode: i64) -> i64
1902func gaps_pass(dom: *u8, fd: i64, mode: i64) -> i64
2001func bench_pass(dom: *u8, fd: i64, mode: i64) -> i64
2141func sg_len(s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { i = i + 1 } return i }
2142func sg_id(s: *u8, n: i64) -> i64
called by 2: sg_parsesg_load
2157func sg_split(s: *u8, f: *i64, capacity: i64, delimiter: i64) -> i64
called by 2: sg_ranksg_parse
2165func sg_decimal(s: *u8) -> i64
2175func sg_sha(b: *u8, n: i64) -> *u8
2184func sg_find(m: *SgPlan, name: *u8, length: i64) -> i64
called by 3: mainsg_ranksg_parse calls 1: sg_len
2197func sg_prefix_decimal(s: *u8, key: *u8) -> i64
called by 1: sg_rank calls 3: startssg_decimalsg_len
2201func sg_rank(m: *SgPlan, raw: *u8, n: i64) -> i64
2259func sg_parse(raw: *u8, n: i64, rank: *u8, rn: i64, matrix: *u8, mn: i64) -> *SgPlan
2363func sg_valid(m: *SgPlan) -> i64
called by 3: mainsg_jsonsg_html
2368func sg_rank_state(m: *SgPlan) -> *u8
called by 3: mainsg_jsonsg_html
2377func sg_load(domain: *u8) -> *SgPlan
2399func sg_json(m: *SgPlan, fd: i64) -> i64
2436func sg_text(fd: i64, s: *u8) -> i64
called by 1: sg_html calls 4: sg_lenwsys_mmapia_esc_text
2447func sg_html(m: *SgPlan, fd: i64) -> i64
2478func sg_css(fd: i64) -> i64
called by 1: sc_layout_pass calls 1: w