rustc -C opt-level=3): 2049 (203973 B .text / 53737 insns)22/9 Hz): 248869 B / 5979051 B (ratio 248869/5979051, saved 5730182/5979051, 11695 ″ dittos)| Rank & Crown | Function Name & Domain | Best Use & Snap-Circuit Role | Pin Signature & 64-Vec Hash | Hardware _rdtsc (p/q) | Details & Quick Peek |
|---|---|---|---|---|---|
| #949 SOLE CROWN #1 | pack_5_trits_base243 domain: ayecast-x86_64 | id: a32f83726652Aye: 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 `([i8;5])->u8` — wire matching input pins via `snap_dag` or `snap_pipeline`. | ([i8;5])->u864-vec BLAKE3: 8a9c47d14f73C64 RAM: 379/65536 (379 B src) | 3767491/200000 cyc/op 2044161/400000 ns/op | 400000000/2044161 ops/us 156 B .text (50 insns) | Trit + (1) | Inspect Details & ASM →Quick Peek Rust (379 B)pub const fn pack_5_trits_base243(trits: [i8; 5]) -> u8 {
let mut acc: u16 = 0;
let mut pow3: u16 = 1;
let mut i = 0;
while i < 5 {
let digit: u16 = if trits[i] < 0 {
0
} else if trits[i] > 0 {
2
} else {
1
};
acc += digit * pow3;
pow3 *= 3;
i += 1;
}
acc as u8
} |