code wiki / _hdl_build / nx_intlog_gate.nx

nx_intlog_gate.nx

buildroot/runtime/_hdl_build/nx_intlog_gate.nx

4043 B92 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_intlog_gate.nx -- KAT gate for the integer log2 / IDF / tf-saturation primitives (the BM25 rung's math floor). Exact on powers of two, tight (+-2/1024) between them, monotonic, overflow-safe at the top of the domain, and the derived idf/tfsat behaviors the ranking depends on. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_intlog.nx nx_g_puts_lib.nx nx_intlog_gate.nx

imports: nx_intlog.nxnx_g_puts_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main g_puts sys_write ilog2_1024 g_check g_puts ↻ idf_q10 ilog2_1024 ↻ tfsat_q10 tfnorm_q10 g_num

structs

none

consts

none

functions

7func g_num(v: i64) -> i64
called by 1: main
16func g_check(name: *u8, cond: i64, pass: *i64, total: *i64) -> i64
called by 1: main calls 1: g_puts
23func main() -> i64