rustc -C opt-level=3): 2049 (203973 B .text / 53737 insns)22/9 Hz): 248993 B / 5979055 B (ratio 248993/5979055, saved 5730062/5979055, 11681 ″ dittos)| Rank & Crown | Function Name & Domain | Best Use & Snap-Circuit Role | Pin Signature & 64-Vec Hash | Hardware _rdtsc (p/q) | Details & Quick Peek |
|---|---|---|---|---|---|
| #811 PEER of 5 | st_golf_gaia_ternary_dot_swar_i64 domain: 8b-is-omni-compute | id: a60c80b93096Aye: aye::OMNI:PeterLodri(0+1)::aarch64 @ 432Hz | Balanced Ternary & b158 Quantization High-speed ternary dot-product accumulation without integer multiplier bottlenecks; ideal for b158 neural weights and low-bit attention inner loops. 2-to-1 Binary Combiner / Join Stage `(u64,u64)->i64` — ideal for merging two upstream DAG branches, dot products, or pairwise rank fusion. | (u64,u64)->i6464-vec BLAKE3: 0abcabf86830C64 RAM: 363/32768 (726 B src) | 5557333/400000 cyc/op 1736833/400000 ns/op | 400000000/1736833 ops/us 224 B .text (59 insns) | Trit + (1) | Inspect Details & ASM →Quick Peek Rust (726 B)pub const fn st_golf_gaia_ternary_dot_swar_i64(activations: u64, weights: u64) -> i64 { const M: u64 = 0x1111_1111_1111_1111; const NIB: u64 = 0x0F0F_0F0F_0F0F_0F0F; const ONES: u64 = 0x0101_0101_0101_0101; let pos_nib = ((weights >> 3) & ((weights >> 2) | ((weights >> 1) & weights))) & M; let nw = !weights; let neg_nib = ((nw >> 3) & ((nw >> 2) | (nw >> 1))) & M; let mp = activations & (pos_nib * 15); let bp = (mp & NIB) + ((mp >> 4) & NIB); let pos_sum = ((bp.wrapping_mul(ONES) >> 56) as i64) - 8 * (pos_nib.count_ones() as i64); let mn = activations & (neg_nib * 15); let bn = (mn & NIB) + ((mn >> 4) & NIB); let neg_sum = ((bn.wrapping_mul(ONES) >> 56) as i64) - 8 * (neg_nib.count_ones() as i64); pos_sum - neg_sum } |