code wiki / _hdl_build / nx_intra_gate.nx

nx_intra_gate.nx

buildroot/runtime/_hdl_build/nx_intra_gate.nx

3294 B55 linesdepth 3pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic intra
docsdependenciesstructsconstsfunctions

about

nx_intra_gate.nx -- proves + MEASURES sovereign intra prediction (nx_intra): the right mode predicts structure with ~0 residual, and beats naive pixels-128 coding (the q/bit gain). Native, fast.

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_gate_emit_lib.nx nx_intra.nx nx_gate_verdict.nx nx_intra_gate.nx

imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_intra.nxnx_gate_verdict.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 sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ in_best in_predict in_sad in_sad ↻ g_check g_puts ↻ naive_sad g_pn sys_mmap ↻ sys_write ↻ gv_ctr sys_mmap ↻ gv_verdict gv_note_bare_rate gv_bare_rate gv_at gv_obj_has_n gv_at ↻ gv_puts sys_write ↻ gv_num sys_mmap ↻

structs

none

consts

none

functions

8func naive_sad(block: *i64) -> i64 { var s: i64=0; var i: i64=0; while i<16 { let d: i64=block[i]-128; if d<0 {s=s-d} else {s=s+d} i=i+1 } return s }
called by 1: main
10func main() -> i64