code wiki / _hdl_build / nx_pattern_emit6_log2.nx

nx_pattern_emit6_log2.nx

buildroot/runtime/_hdl_build/nx_pattern_emit6_log2.nx

5475 B68 linesdepth 3pulls 3 transitivereach 1 importersview sourcekind librarytopic pattern
docsdependenciesstructsconstsfunctions

about

nx_pattern_emit6_log2.nx -- PATTERN EMITTER: MATH_KERNEL / LOG2_REDUCE (math-engine repertoire-growth rep -- a NEW emitter-kid past the 9 existing pe6 templates). PROVENANCE: template tutor-SUBMITTED (Claude) for COUNCIL approval; author=TUTOR pending EoE back-fill. The KERNEL it begets is BUILDER/emitter-authored + RECONSTRUCTABLE (re-beget => byte-identical). It REUSES the SOVEREIGN _pm_log_spec (oracle-generated, mpmath@60dps) verbatim -- ZERO new/hand-typed constants. Clones pe6_author_logf64's LOG_REDUCE reduction+poly and changes ONLY the final recombine: log2(x) = log2(2^k * m) = k + ln(m)/ln2 (ln2 reconstructed from spec c[2]+c[3]). LAWS: flat ifs, no &&/||, <=6 args per func, one transcendental per emitted file. license_tier: ORIGINAL

dependencies 2 imports · 1 importers

nx_pattern_emit.nx nx_syscalls.nx nx_pattern_emit6_log2.nx nx_log2_beget.nx

imports: nx_pattern_emit.nxnx_syscalls.nx

imported by: nx_log2_beget.nx

structs

none

consts

none

functions

14func pe6_author_log2(name: *u8, modfile: *u8, modpath: *u8, testpath: *u8, c: *i64, ncoef: i64) -> i64