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 (641309/100000 cyc/op); safe for ultra-hot per-sample or per-packet inner loops.
Snap-Circuit Wiring Role: Specialized Multi-Pin Stage `(u32,u8)->u32` — wire matching input pins via `snap_dag` or `snap_pipeline`.
.text: 13 B (4 x86_64 insns)90 B)pub fn fnv1a_byte(h: u32, b: u8) -> u32 {
(h ^ (b as u32)).wrapping_mul(0x0100_0193)
}
rustc -C opt-level=3 x86_64 Disassembly (13 B .text / 4 insns)fnv1a_byte:
movzx eax, sil
xor eax, edi
imul eax, eax, 16777619
ret
| Global Rank | Capsule & Domain | Hardware _rdtsc | Latency | Throughput | ELF .text | Ternary Vote | Author Aye |
|---|---|---|---|---|---|---|---|
| #489 | fnv1a_byte (THIS CAPSULE) domain: smart-tree | id: 5288e62685fa3f3cedc43402bea36dde | 641309/100000 cyc/op | 1222057/400000 ns/op | 400000000/1222057 ops/us | 13 B .text (4 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |