Best Use & Engineering Application Guide

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

Hardware _rdtsc: 40197/10000 cycles/op
Latency: 765833/400000 ns/op
Throughput: 400000000/765833 ops/us
Compiled ELF64 .text: 6 B (3 x86_64 insns)
C64 64KB RAM Budget: 43/32768 (86 B source)
Ternary Vote: + (score 1) | Salience: 90/1
Pure-Rust Capsule Source Code (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

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

Global RankCapsule & DomainHardware _rdtscLatencyThroughputELF .textTernary VoteAuthor Aye
#53rds_data_from_word (THIS CAPSULE)
domain: smart-tree | id: d52e987d0145cc65115d5b6710cc33a6
40197/10000 cyc/op765833/400000 ns/op400000000/765833 ops/us6 B .text (3 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz