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`.
.text: 38 B (13 x86_64 insns)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
| Global Rank | Capsule & Domain | Hardware _rdtsc | Latency | Throughput | ELF .text | Ternary Vote | Author Aye |
|---|---|---|---|---|---|---|---|
| #69 | encode_nec_ir (THIS CAPSULE) domain: flugos-x86_64 | id: ebc7d9fbdf0f8c065c038e8bcefa6c82 | 519409/100000 cyc/op | 15463/6250 ns/op | 6250000/15463 ops/us | 38 B .text (13 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |