Engineering Category: Deterministic Sovereign Compute Kernel
Best Use in Production: Pure-Rust C64-bounded integer transformation kernel verified across 64 canonical test vectors for deterministic Snap-Circuit composition.
When to Select This Capsule: Sole canonical implementation for its 64-vector functional equivalence class. Sub-10-cycle hardware kernel (659201/200000 cyc/op); safe for ultra-hot per-sample or per-packet inner loops.
Snap-Circuit Wiring Role: Specialized Multi-Pin Stage `(u8)->u16` — wire matching input pins via `snap_dag` or `snap_pipeline`.
.text: 32 B (12 x86_64 insns)138 B)pub fn velocity_7_to_16(v: u8) -> u16 {
if v == 0 {
return 0;
}
let v = v as u16;
(v << 9) | (v << 2) | (v >> 5)
}
rustc -C opt-level=3 x86_64 Disassembly (32 B .text / 12 insns)velocity_7_to_16:
test dil, dil
je .LBB7_1
movzx eax, dil
mov ecx, eax
shl ecx, 9
lea edx, [4*rax]
or edx, ecx
shr eax, 5
or eax, edx
ret
.LBB7_1:
xor eax, eax
ret
| Global Rank | Capsule & Domain | Hardware _rdtsc | Latency | Throughput | ELF .text | Ternary Vote | Author Aye |
|---|---|---|---|---|---|---|---|
| #11 | velocity_7_to_16 (THIS CAPSULE) domain: dhvani-x86_64 | id: 0e6c4ae2751b46544f6d4dc49e90c848 | 659201/200000 cyc/op | 357723/400000 ns/op | 400000000/357723 ops/us | 32 B .text (12 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |