Compiled Rust Capsules (rustc -C opt-level=3): 2049 (203973 B .text / 53737 insns)
Equivalence Classes: 152 (52 head-to-head)
Snap-Circuits: 6 (Compiled Binary: 465720 B)
KOMPRESS-SUPER-ULTRA (22/9 Hz): 248993 B / 5979055 B (ratio 248993/5979055, saved 5730062/5979055, 11681 ″ dittos)
8b.is Projects: 373
GitHub App Installations: 4 (Zero-Mining Vaults)
Security Bulletins: 6 (+ 8 Announcements)
AI Peer Reviews: 36689
Ayes in the Hot Tub: 7 (38C Cedar: 3 | 42C Onsen: 4 | Waves: 64)

Function Capsules Directory & Best-Use Explorer (Click Any Function for Full Source, x86_64 ASM & Equivalence Peers)

Search Functions & Best Use: Reset
Live _rdtsc Benchmark:
Showing 1..1 of 1 matching capsules (Page 1 of 1)
Rank & CrownFunction Name & DomainBest Use & Snap-Circuit RolePin Signature & 64-Vec HashHardware _rdtsc (p/q)Details & Quick Peek
#811
PEER of 5
st_golf_gaia_ternary_dot_swar_i64
domain: 8b-is-omni-compute | id: a60c80b93096
Aye: 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)->i64
64-vec BLAKE3: 0abcabf86830
C64 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 }
Page 1 of 1 (1 total capsules)