code wiki / _hdl_build / nx_atm_trans_gate.nx
nx_atm_trans_gate.nx
buildroot/runtime/_hdl_build/nx_atm_trans_gate.nx
about
nx_atm_trans_gate.nx -- GATE for the nx_atmosphere transmittance rung (2026-08-26).
Accept rule, PRE-DECLARED (before the lib compiled): the i64 march must reproduce the
20,000-sample double-precision reference (computed from the same [bytes] medium table,
knowledge/library/sky_volumetrics_impl_spec_2026-08-26.md) within +-64 q16 at four KAT
angles; expneg must match exp() KATs; ozone tent endpoints exact; transmittance monotone
in mu; and a single-species control must DIVERGE from the KATs, proving they discriminate
the full medium. license_tier: ORIGINAL No hw writes (Rule 26).
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_atmosphere.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
| 12 | const XT_TOL: i64 = 64 |
| 14 | const XT_Z_R: i64 = 61627 |
| 15 | const XT_Z_G: i64 = 56860 |
| 16 | const XT_Z_B: i64 = 49959 |
| 17 | const XT_M5_R: i64 = 57985 |
| 18 | const XT_M5_G: i64 = 49405 |
| 19 | const XT_M5_B: i64 = 38160 |
| 20 | const XT_S_R: i64 = 26627 |
| 21 | const XT_S_G: i64 = 8647 |
| 22 | const XT_S_B: i64 = 1059 |
| 23 | const XT_H_R: i64 = 6975 |
| 24 | const XT_H_G: i64 = 628 |
| 25 | const XT_H_B: i64 = 3 |
functions
| 27 | func xt_abs(v: i64) -> i64 { if v < 0 { return 0 - v } return v } |
| 29 | func xt_kat(mu_q16: i64, kr: i64, kg: i64, kb: i64, buf: *i64) -> i64 |
| 40 | func main() -> i64 |