code wiki / _hdl_build / nx_ventropy_gate.nx
nx_ventropy_gate.nx
buildroot/runtime/_hdl_build/nx_ventropy_gate.nx
about
nx_ventropy_gate.nx -- proves + MEASURES sovereign entropy coding of a quantized 4x4 block (nx_ventropy), V-R3.
Native nx_cc->nxasm, no node.
1) round-trip: a quantized block (DC + a few low-freq) encode -> decode == original
2) compression (MEASURED): a few-nonzero block -> a few bytes vs 32 raw (16 coeffs x 2B)
3) near-static: an all-zero block -> ~1 byte (EOB only)
4) high-frequency: a single coeff at the LAST zig-zag position round-trips (run handled)
5) dense (neg, honest): a full 16-nonzero block round-trips and is bounded (no fake compression)
license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_ventropy.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
| none |
functions
| 13 | func beq16(a: *i64, b: *i64) -> i64 { var i: i64=0; while i<16 { if a[i]!=b[i] { return 0 } i=i+1 } return 1 } called by 1: main |
| 14 | func clr16(a: *i64) -> i64 { var i: i64=0; while i<16 { a[i]=0; i=i+1 } return 0 } called by 1: main |
| 16 | func main() -> i64 |