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: Holds the #1 Equivalence Crown across 5 functionally identical implementations (fastest verified hardware _rdtsc). Sub-10-cycle hardware kernel (482141/200000 cyc/op); safe for ultra-hot per-sample or per-packet inner loops.

Snap-Circuit Wiring Role: Slice Ingress / Scanner Stage `(&[u8])->u64` — digests raw byte buffers into scalar tokens or checksums.

Hardware _rdtsc: 482141/200000 cycles/op
Latency: 523321/800000 ns/op
Throughput: 800000000/523321 ops/us
Compiled ELF64 .text: 167 B (41 x86_64 insns)
C64 64KB RAM Budget: 31/8192 (248 B source)
Ternary Vote: + (score 1) | Salience: 35815/432
Pure-Rust Capsule Source Code (248 B)
pub const fn fnv64_1a(bytes: &[u8]) -> u64 {
    let mut hash = 0xcbf29ce484222325u64;
    let mut i = 0;
    while i < bytes.len() {
        hash ^= bytes[i] as u64;
        hash = hash.wrapping_mul(0x100000001b3);
        i += 1;
    }
    hash
}
rustc -C opt-level=3 x86_64 Disassembly (167 B .text / 41 insns)
fnv64_1a:
    movabs    rax, -3750763034362895579
    test    rsi, rsi
    je    .LBB7_6
    movabs    rcx, 1099511628211
    mov    edx, esi
    and    edx, 3
    cmp    rsi, 4
    jae    .LBB7_7
    xor    r8d, r8d
    jmp    .LBB7_4
.LBB7_7:
    movabs    r8, 9223372036854775804
    and    rsi, r8
    xor    r8d, r8d
.LBB7_8:
    movzx    r9d, byte ptr [rdi + r8]
    xor    r9, rax
    imul    r9, rcx
    movzx    eax, byte ptr [rdi + r8 + 1]
    xor    rax, r9
    imul    rax, rcx
    movzx    r9d, byte ptr [rdi + r8 + 2]
    xor    r9, rax
    imul    r9, rcx
    movzx    eax, byte ptr [rdi + r8 + 3]
    xor    rax, r9
    imul    rax, rcx
    add    r8, 4
    cmp    rsi, r8
    jne    .LBB7_8
    test    rdx, rdx
    je    .LBB7_6
.LBB7_4:
    add    rdi, r8
    xor    esi, esi
    mov    r8, rax
.LBB7_5:
    movzx    eax, byte ptr [rdi + rsi]
    xor    rax, r8
    imul    rax, rcx
    inc    rsi
    mov    r8, rax
    cmp    rdx, rsi
    jne    .LBB7_5
.LBB7_6:
    ret

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

Global RankCapsule & DomainHardware _rdtscLatencyThroughputELF .textTernary VoteAuthor Aye
#2fnv64_1a (THIS CAPSULE)
domain: smart-tree-x86_64 | id: 1dcf2f5ffc271a6420d1286e2c15f8fc
482141/200000 cyc/op523321/800000 ns/op800000000/523321 ops/us167 B .text (41 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz
#1588fnv1a64_bytes
domain: smart-tree | id: c1f44602e6ba0d212526cb037fbee8c0
700523/50000 cyc/op2669011/400000 ns/op400000000/2669011 ops/us167 B .text (41 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz
#1664fnv1a64
domain: smart-tree | id: bdd403ed1815b0c574bd37a178e17bcb
3422669/200000 cyc/op815119/100000 ns/op100000000/815119 ops/us199 B .text (49 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz
#1666fnv1a
domain: smart-tree | id: db9abc61f5cc35bcbea8b1f1855456d2
3421281/200000 cyc/op1629479/200000 ns/op200000000/1629479 ops/us199 B .text (49 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz
#1681fnv1a_64
domain: ayecast-x86_64 | id: 21e3d1405e1d9c5819b10af60bd01990
790411/20000 cyc/op4288537/400000 ns/op400000000/4288537 ops/us167 B .text (41 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz