code wiki / _hdl_build / nx_vcodec_golomb_gate.nx
nx_vcodec_golomb_gate.nx
buildroot/runtime/_hdl_build/nx_vcodec_golomb_gate.nx
about
nx_vcodec_golomb_gate.nx -- KAT for the vcv-10 exp-Golomb MV-delta verbs (F608 MVD bundle).
Proves: (1) vc_gput -> vc_gget round-trips exact over the signed sweep (qpel MV deltas live inside);
(2) emitted bit-length == the probe's gbits() cost mirror (2*blen(zze+1)-1) for EVERY value -- the RD
costing and the wire can never drift; (3) packed-stream decode in order with exact end position.
Rides nx_gate_verdict (migrate-on-touch law D001). license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_vcodec.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
structs
| none |
consts
| none |
functions
| 9 | func zzg(v: i64) -> i64 { if v < 0 { return ((0 - v) << 1) - 1 } return v << 1 } called by 1: main |
| 10 | func blg(z: i64) -> i64 { var n: i64 = 0; var x: i64 = z; while x > 0 { n = n + 1; x = x >> 1 } return n } called by 1: main |
| 12 | func main() -> i64 |