fx.nx
buildroot/runtime/fx.nx
about
dependencies 1 imports · 49 importers
diagram shows first 10 each side; +0 more imports, +39 more importers in the complete lists below.
imports: syscalls.nx
imported by: fx_exp_test.nxfx_gate.nxfx_log2_test.nxnx_bench_harness.nxnx_bench_harness_test.nxnx_bench_intent.nxnx_bench_intent_test.nxnx_bench_metrics.nxnx_bench_metrics_test.nxnx_brand_guard.nxnx_content_measure.nxnx_crawl_bfs.nxnx_crawl_doc_test.nxnx_crawl_main.nxnx_crawl_run.nxnx_diora_dedup_demo.nxnx_diora_frontend.nxnx_diora_index_demo.nxnx_diora_leaderboard.nxnx_facet_classify.nxnx_fft_f32.nxnx_fnet_mix.nxnx_geo_distance.nxnx_geo_eqarea.nxnx_geo_haversine.nxnx_geo_query.nxnx_geo_wasm.nxnx_geo_webmerc.nxnx_ir_eval.nxnx_ir_eval_gate.nxnx_live_crawl.nxnx_maps_render.nxnx_phash.nxnx_phash_test.nxnx_rank_fused.nxnx_rank_fused_test.nxnx_recall_bench.nxnx_recall_eval.nxnx_recall_fuse.nxnx_recall_fuse_gate.nxnx_recall_rerank_gate.nxnx_rrf.nxnx_rrf_test.nxnx_search_crawl_server.nxnx_search_server.nxnx_simhash.nxnx_simhash_test.nxnx_source_tier.nxnx_source_tier_test.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 46 | const FX_SHIFT: i64 = 16 |
| 47 | const FX_ONE: i64 = 65536 // 2^16 |
| 48 | const FX_HALF: i64 = 32768 // 0.5 in Q16.16 |
| 49 | const FX_FRAC_MASK: i64 = 0xFFFF // low 16 bits |
| 50 | const FX_TWO_PI: i64 = 411775 // round(2π * 65536); 1 rev in Q16.16 |
| 51 | const FX_PI: i64 = 205887 // round(π * 65536) |
| 52 | const FX_HALF_PI: i64 = 102944 // round(π/2 * 65536) |
| 56 | const FX_CORDIC_K: i64 = 39797 |
functions
| 62 | func fx_add(a: i64, b: i64) -> i64 { return a + b } |
| 63 | func fx_sub(a: i64, b: i64) -> i64 { return a - b } |
| 64 | func fx_neg(a: i64) -> i64 { return 0 - a } |
| 69 | func fx_mul(a: i64, b: i64) -> i64 { |
| 76 | func fx_div(a: i64, b: i64) -> i64 { |
| 82 | func fx_from_int(n: i64) -> i64 { return n << FX_SHIFT } |
| 85 | func fx_to_int(a: i64) -> i64 { return a >> FX_SHIFT }
called by 1: main |
| 89 | func fx_from_frac(num: i64, den: i64) -> i64 { |
| 112 | func fx_log2(x: i64) -> i64 { |
| 136 | func fx_log2_int(n: i64) -> i64 { |
| 149 | func fx_cordic_atan(i: i64) -> i64 { |
| 170 | func fx_normalize_angle(a: i64) -> i64 { |
| 185 | func fx_sin_cos(theta_raw: i64, sin_out: *i64, cos_out: *i64) -> i64 { |
| 235 | func fx_sin(theta: i64) -> i64 {
called by 7: mainfftf_twiddlesfnet_build_twiddlesmaingeo_haversine_mgeo_webmerc_tile+1 calls 1: fx_sin_cos |
| 244 | func fx_cos(theta: i64) -> i64 {
called by 8: mainfftf_twiddlesfnet_build_twiddlesgeo_distance_mgeo_haversine_mgeo_bearing+2 calls 1: fx_sin_cos |
| 261 | func fx_yaw_u8_to_angle(yaw: i64) -> i64 {
called by 1: main |
| 278 | func fx_exp2_factor(k: i64) -> i64 {
called by 1: fx_exp2_frac |
| 299 | func fx_exp2_frac(f: i64) -> i64 { |
| 310 | func fx_exp2(y: i64) -> i64 { |
| 325 | func fx_exp10(x: i64) -> i64 { return fx_exp2(fx_mul(x, 217706)) } |
| 326 | func fx_expe(x: i64) -> i64 { return fx_exp2(fx_mul(x, 94548)) } |
| 327 | func fx_pow(base: i64, ex: i64) -> i64 { |
| 337 | func main() -> i64 { |