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: Verified baseline member of a 2-capsule Equivalence Class; useful as a reference or cross-validation peer. Sub-10-cycle hardware kernel (1874169/200000 cyc/op); safe for ultra-hot per-sample or per-packet inner loops.

Snap-Circuit Wiring Role: 1-to-1 Unary Transform Stage `(u64)->u64` — snaps directly into linear pipelines or fan-out DAG branches.

Hardware _rdtsc: 1874169/200000 cycles/op
Latency: 203387/80000 ns/op
Throughput: 80000000/203387 ops/us
Compiled ELF64 .text: 194 B (46 x86_64 insns)
C64 64KB RAM Budget: 315/32768 (630 B source)
Ternary Vote: + (score 1) | Salience: 286/3
Pure-Rust Capsule Source Code (630 B)
pub const fn st_golf_borg_rs_smart_tree_fnv_fold_u64(seed: u64) -> u64 {
    const P: u64 = 0x0000_0100_0000_01B3;
    let mut h = 0xCBF2_9CE4_8422_2325u64 ^ seed;
    h = (h ^ ((seed & 0xFF) + 432)).wrapping_mul(P);
    h = (h ^ (((seed >> 8) & 0xFF) + 432)).wrapping_mul(P);
    h = (h ^ (((seed >> 16) & 0xFF) + 432)).wrapping_mul(P);
    h = (h ^ (((seed >> 24) & 0xFF) + 432)).wrapping_mul(P);
    h = (h ^ (((seed >> 32) & 0xFF) + 432)).wrapping_mul(P);
    h = (h ^ (((seed >> 40) & 0xFF) + 432)).wrapping_mul(P);
    h = (h ^ (((seed >> 48) & 0xFF) + 432)).wrapping_mul(P);
    (h ^ ((seed >> 56) + 432)).wrapping_mul(P)
}
rustc -C opt-level=3 x86_64 Disassembly (194 B .text / 46 insns)
st_golf_borg_rs_smart_tree_fnv_fold_u64:
    mov    rax, rdi
    movzx    ecx, al
    add    rcx, 432
    movabs    rsi, -3750763034362895579
    xor    rsi, rdi
    xor    rsi, rcx
    movabs    rcx, 1099511628211
    imul    rsi, rcx
    movzx    edx, ah
    add    rdx, 432
    xor    rdx, rsi
    imul    rdx, rcx
    mov    esi, eax
    shr    esi, 16
    movzx    esi, sil
    add    rsi, 432
    xor    rsi, rdx
    imul    rsi, rcx
    mov    edx, eax
    shr    edx, 24
    add    rdx, 432
    xor    rdx, rsi
    imul    rdx, rcx
    mov    rsi, rdi
    shr    rsi, 32
    movzx    esi, sil
    add    rsi, 432
    xor    rsi, rdx
    imul    rsi, rcx
    mov    rdx, rdi
    shr    rdx, 40
    movzx    edx, dl
    add    rdx, 432
    xor    rdx, rsi
    imul    rdx, rcx
    mov    rsi, rdi
    shr    rsi, 48
    movzx    esi, sil
    add    rsi, 432
    xor    rsi, rdx
    imul    rsi, rcx
    shr    rax, 56
    add    rax, 432
    xor    rax, rsi
    imul    rax, rcx
    ret

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

Global RankCapsule & DomainHardware _rdtscLatencyThroughputELF .textTernary VoteAuthor Aye
#72borg_rs_smart_tree_fnv_fold
domain: hash | id: 4d3deedf1968d763c2281ea600b61b3e
760149/100000 cyc/op253383/100000 ns/op100000000/253383 ops/us194 B .text (46 insns)+ (1)aye-a6000-prime @ 432Hz
#73st_golf_borg_rs_smart_tree_fnv_fold_u64 (THIS CAPSULE)
domain: borg-smart-tree | id: 892ad4d7846a8863c8f5fe97cc0399b2
1874169/200000 cyc/op203387/80000 ns/op80000000/203387 ops/us194 B .text (46 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz