code wiki / _hdl_build / nx_intra_gate.nx

nx_intra_gate.nx

buildroot/runtime/_hdl_build/nx_intra_gate.nx

2855 B47 linesdepth 3pulls 4 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 3 imports · 0 importers

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

imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_intra.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 in_best in_predict in_sad in_sad ↻ g_check g_puts ↻ naive_sad g_pn sys_mmap ↻ sys_write ↻ sys_exit

structs

none

consts

none

functions

7func 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
9func main() -> i64