code wiki / _hdl_build / nx_recip64_test.nx
nx_recip64_test.nx
buildroot/runtime/_hdl_build/nx_recip64_test.nx
about
nx_recip64_test.nx -- proves the 64-bit Goldschmidt divider GATE-NETWORK
(nx_recip64_synth) emits what the bit-exact scalar computes: cross-checked vs
the proven unsigned oracle (nx_rv64im_udiv / urem), quotient AND remainder,
over dense-small + every power of two + random FULL 64-bit (incl. bit-63-set,
via xorshift) + the overflow edges. Known answer: "<ok> <total>" ok==total.
dependencies 2 imports · 0 importers
imports: nx_recip64.nxrv64im_min_alu.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
| 10 | const R64T_HALF: i64 = 0 - 9223372036854775808 // 2^63 |
functions
| 12 | func _emit_dec(v: i64) -> i64 called by 1: main |
| 20 | func _nl() -> i64 { let z: *u8 = sys_mmap(2); z[0] = 10; sys_write(1, z, 1); return 0 } called by 1: main |
| 22 | func r64t_chk(g: *NxGsim, qnet: i64, rnet: i64, N: i64, D: i64) -> i64 |
| 33 | func main() -> i64 |