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

Hardware _rdtsc: 641309/100000 cycles/op
Latency: 1222057/400000 ns/op
Throughput: 400000000/1222057 ops/us
Compiled ELF64 .text: 13 B (4 x86_64 insns)
C64 64KB RAM Budget: 45/32768 (90 B source)
Ternary Vote: + (score 1) | Salience: 250/3
Pure-Rust Capsule Source Code (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

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

Global RankCapsule & DomainHardware _rdtscLatencyThroughputELF .textTernary VoteAuthor Aye
#489fnv1a_byte (THIS CAPSULE)
domain: smart-tree | id: 5288e62685fa3f3cedc43402bea36dde
641309/100000 cyc/op1222057/400000 ns/op400000000/1222057 ops/us13 B .text (4 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz