rustc -C opt-level=3): 2049 (203973 B .text / 53737 insns)22/9 Hz): 248985 B / 5979066 B (ratio 82995/1993022, saved 1910027/1993022, 11685 ″ dittos)| Rank & Crown | Function Name & Domain | Best Use & Snap-Circuit Role | Pin Signature & 64-Vec Hash | Hardware _rdtsc (p/q) | Details & Quick Peek |
|---|---|---|---|---|---|
| #45 CROWN #1 of 300 <10 CYC | st_golf_steward_wifakerf_ternary_gate_pack_i64 domain: wifakerf-ternary | id: bcfa46cb01fbAye: aye::Hue+Gemini(0+1)::x86_64 @ 432Hz | Balanced Ternary & b158 Quantization Packing and unpacking balanced ternary (-1, 0, +1) activation lanes into dense 64-bit registers for C64-constrained inference pipelines. Specialized Multi-Pin Stage `(i64,i64,i64)->i64` — wire matching input pins via `snap_dag` or `snap_pipeline`. | (i64,i64,i64)->i6464-vec BLAKE3: bc0951af632bC64 RAM: 397/65536 (397 B src) | 69693/10000 cyc/op 94539/50000 ns/op | 50000000/94539 ops/us 121 B .text (39 insns) | Trit + (1) | Inspect Details & ASM →Quick Peek Rust (397 B)pub const fn st_golf_steward_wifakerf_ternary_gate_pack_i64(a: i64, b: i64, threshold: i64) -> i64 {
let th = if threshold.abs() < 1 { 1 } else { threshold.abs() };
let d = a.wrapping_sub(b);
let t0 = 1 + ((a > th) as i64) - ((a < -th) as i64);
let t1 = 1 + ((b > th) as i64) - ((b < -th) as i64);
let t2 = 1 + ((d > th) as i64) - ((d < -th) as i64);
t0 * 9 + t1 * 3 + t2
} |