code wiki / _hdl_build / nx_anat_sov_clean.nx
nx_anat_sov_clean.nx
buildroot/runtime/_hdl_build/nx_anat_sov_clean.nx
about
nx_anat_sov.nx -- ★SOVEREIGN NishiLang render of the 8-layer anatomical being (NXMSH2), the PRODUCT half of
GX-11: the integer twin of the CUDA benchmark (/world/anatomy_gpu). 100% integer, own f32 decoder, own
barycentric z-buffer rasterizer, own PNG -- NO CUDA, NO GPU, NO 3rd-party. Measured against the CUDA
reference by the SAME invariants: intact occludes the interior, explode shows all 8 systems, stereo has
horizontal disparity. Stereo is OFF-AXIS (parallel, convergence at the model) -- an UPGRADE over the
benchmark's toe-in (no keystone). Reads knowledge/being_full.nxmesh; writes a PNG + a JSON stats line.
nx_anat_sov <mesh> <intact|explode|skin|layerN> <C|L|R> <W> <H> <out.png>
license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_png.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
| 11 | const AS_MAGIC_40500: i64 = 40500 |
| 12 | const AS_MAGIC_9999: i64 = 9999 |
| 13 | const AS_MAGIC_8388607: i64 = 8388607 |
| 14 | const AS_MAGIC_8388608: i64 = 8388608 |
| 15 | const AS_MAGIC_73856093: i64 = 73856093 |
| 16 | const AS_MAGIC_19349663: i64 = 19349663 |
| 17 | const AS_MAGIC_83492791: i64 = 83492791 |
| 18 | const AS_MAGIC_2147483647: i64 = 2147483647 |
| 19 | const AS_MAGIC_15731: i64 = 15731 |
| 20 | const AS_MAGIC_789221: i64 = 789221 |
| 21 | const AS_MAGIC_1376312589: i64 = 1376312589 |
| 22 | const AS_MAGIC_65536: i64 = 65536 |
| 23 | const AS_MAGIC_2000000000: i64 = 2000000000 |
| 24 | const AS_MAGIC_5423: i64 = 5423 |
| 25 | const AS_MAGIC_9487: i64 = 9487 |
| 26 | const AS_MAGIC_12206: i64 = 12206 |
| 27 | const AS_MAGIC_10160: i64 = 10160 |
| 28 | const AS_MAGIC_4064: i64 = 4064 |
| 29 | const AS_MAGIC_12190: i64 = 12190 |
| 30 | const AS_MAGIC_1280: i64 = 1280 |
| 31 | const AS_MAGIC_1024: i64 = 1024 |
| 38 | const AS_POSQ0: i64 = 4096 |
| 39 | const AS_TARGET: i64 = 200000 |
| 40 | const AS_ZFAR: i64 = 2000000000 |
| 41 | const AS_Q14: i64 = 16384 |
functions
| 43 | func as_streq(a: *u8, b: *u8) -> i64 {
called by 1: main |
| 49 | func as_satoi(s: *u8) -> i64 {
called by 1: main |
| 55 | func as_hw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n+1 } sys_write(1, s, n); return 0 } |
| 56 | func as_pn(v: i64) -> i64 { |
| 65 | func as_rdbits(b: *u8, o: i64) -> i64 { |
| 69 | func as_f32mul(b: *u8, o: i64, mul: i64) -> i64 { |
| 82 | func as_isqrt(v: i64) -> i64 { if v <= 0 { return 0 } var x: i64 = v; var y: i64 = (x+1)/2; while y < x { x = y; y = (x + v/x)/2 } return x }
called by 1: main |
| 87 | func tx_h3(ix: i64, iy: i64, iz: i64) -> i64 {
called by 1: tx_vnoise |
| 93 | func tx_floordiv(x: i64, s: i64) -> i64 { var q: i64 = x/s; if x < 0 { if x % s != 0 { q = q - 1 } } return q }
called by 1: tx_vnoise |
| 94 | func tx_lerp(a: i64, b: i64, t8: i64) -> i64 { return a + (b-a)*t8/256 }
called by 1: tx_vnoise |
| 95 | func tx_vnoise(x: i64, y: i64, z: i64, s: i64) -> i64 { |
| 107 | func tx_fbm(x: i64, y: i64, z: i64) -> i64 { |
| 117 | func as_sin_fill(t: *i64) -> i64 {
called by 1: main |
| 122 | func as_wrap(d: i64) -> i64 { var x: i64 = d % 360; if x < 0 { x = x + 360 } return x }
called by 1: main |
| 123 | func as_min(a: i64, b: i64) -> i64 { if a < b { return a } return b }
called by 1: main |
| 124 | func as_max(a: i64, b: i64) -> i64 { if a > b { return a } return b }
called by 1: main |
| 126 | func main(argc: i64, argv: *i64) -> i64 { |