code wiki / _hdl_build / nx_store_hist.nx
nx_store_hist.nx
buildroot/runtime/_hdl_build/nx_store_hist.nx
about
nx_store_hist.nx -- GENERIC seg-store plane column HISTOGRAM. Reads a plane FULLY (internal sts_load,
not subject to the 64KB tools/call RESPONSE cap that truncates a raw load -- eats seq488 for reads),
counts distinct values of one TAB column, sorts by count desc, and writes 'count TAB value' rows to an
output plane (small -> fully readable). Enables FULL-SCALE verification of large planes. SUBCLASS of
nx_ingest_base (ib_bput/ib_bputc/ib_bputn/ib_werr/ib_wn/ib_refuse). No hw writes (Rule 26). expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_ingest_base.nxnx_store_seed_lib.nxnx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 10 | const HS_CAP: i64 = 4194304 |
| 11 | const HS_OCAP: i64 = 65536 |
| 12 | const HS_MAXVALS: i64 = 512 |
| 13 | const HS_VALSTORE: i64 = 131072 |
| 14 | const HS_TAB: i64 = 9 |
| 15 | const HS_NL: i64 = 10 |
| 16 | const HS_STDERR: i64 = 2 |
| 17 | const HS_MAXCOL: i64 = 16 |
| 18 | const HS_PAIR: i64 = 2 |
| 19 | const HS_SPB: i64 = 256 |
| 20 | const HS_CANDCAP: i64 = 1024 |
| 21 | const HS_ARGC_MIN: i64 = 4 |
| 22 | const HS_EXIT_USAGE: i64 = 2 |
| 23 | const HS_EXIT_IO: i64 = 1 |
| 24 | const HS_D0: i64 = 48 |
| 25 | const HS_D9: i64 = 57 |
functions
| 27 | func hs_streq(a: *u8, b: *u8) -> i64 called by 1: main |
| 33 | func hs_atoi(s: *u8) -> i64 called by 1: main |
| 39 | func hs_cols(q: *u8, ls: i64, le: i64, sp: *i64) -> i64 called by 1: main |
| 55 | func main(argc: i64, argv: *i64) -> i64 |