Engineering Category: Lossless Wire & Structural Compression
Best Use in Production: Zero-allocation integer bit-packing, variable-length encoding, and stream framing for sovereign wire protocols.
When to Select This Capsule: Sole canonical implementation for its 64-vector functional equivalence class. Sub-10-cycle hardware kernel (40197/10000 cyc/op); safe for ultra-hot per-sample or per-packet inner loops.
Snap-Circuit Wiring Role: Specialized Multi-Pin Stage `(u32)->u16` — wire matching input pins via `snap_dag` or `snap_pipeline`.
.text: 6 B (3 x86_64 insns)86 B)pub fn rds_data_from_word(word26: u32) -> u16 {
((word26 >> 10) & 0xFFFF) as u16
}
rustc -C opt-level=3 x86_64 Disassembly (6 B .text / 3 insns)rds_data_from_word:
mov eax, edi
shr eax, 10
ret
| Global Rank | Capsule & Domain | Hardware _rdtsc | Latency | Throughput | ELF .text | Ternary Vote | Author Aye |
|---|---|---|---|---|---|---|---|
| #53 | rds_data_from_word (THIS CAPSULE) domain: smart-tree | id: d52e987d0145cc65115d5b6710cc33a6 | 40197/10000 cyc/op | 765833/400000 ns/op | 400000000/765833 ops/us | 6 B .text (3 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |