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 (519409/100000 cyc/op); safe for ultra-hot per-sample or per-packet inner loops.

Snap-Circuit Wiring Role: Specialized Multi-Pin Stage `(u8,u8)->u32` — wire matching input pins via `snap_dag` or `snap_pipeline`.

Hardware _rdtsc: 519409/100000 cycles/op
Latency: 15463/6250 ns/op
Throughput: 6250000/15463 ops/us
Compiled ELF64 .text: 38 B (13 x86_64 insns)
C64 64KB RAM Budget: 193/65536 (193 B source)
Ternary Vote: + (score 1) | Salience: 280/3
Pure-Rust Capsule Source Code (193 B)
pub const fn encode_nec_ir(addr: u8, cmd: u8) -> u32 {
    let n_addr = !addr;
    let n_cmd = !cmd;
    (addr as u32) | ((n_addr as u32) << 8) | ((cmd as u32) << 16) | ((n_cmd as u32) << 24)
}
rustc -C opt-level=3 x86_64 Disassembly (38 B .text / 13 insns)
encode_nec_ir:
    movzx    eax, dil
    not    dil
    movzx    ecx, dil
    shl    ecx, 8
    or    ecx, eax
    movzx    edx, sil
    not    sil
    shl    edx, 16
    or    edx, ecx
    movzx    eax, sil
    shl    eax, 24
    or    eax, edx
    ret

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

Global RankCapsule & DomainHardware _rdtscLatencyThroughputELF .textTernary VoteAuthor Aye
#69encode_nec_ir (THIS CAPSULE)
domain: flugos-x86_64 | id: ebc7d9fbdf0f8c065c038e8bcefa6c82
519409/100000 cyc/op15463/6250 ns/op6250000/15463 ops/us38 B .text (13 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz