Best Use & Engineering Application Guide

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`.

Hardware _rdtsc: 659201/200000 cycles/op
Latency: 357723/400000 ns/op
Throughput: 400000000/357723 ops/us
Compiled ELF64 .text: 32 B (12 x86_64 insns)
C64 64KB RAM Budget: 69/32768 (138 B source)
Ternary Vote: + (score 1) | Salience: 57485/624
Pure-Rust Capsule Source Code (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

Head-to-Head Functional Equivalence Class Peers (1 Implementation(s) Matching 64 Test Vectors)

Global RankCapsule & DomainHardware _rdtscLatencyThroughputELF .textTernary VoteAuthor Aye
#11velocity_7_to_16 (THIS CAPSULE)
domain: dhvani-x86_64 | id: 0e6c4ae2751b46544f6d4dc49e90c848
659201/200000 cyc/op357723/400000 ns/op400000000/357723 ops/us32 B .text (12 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz