Best Use & Engineering Application Guide

Engineering Category: Cryptographic Mixing, Checksums & Wire Integrity

Best Use in Production: Fast wire-speed packet checksum verification, case-folded label hashing, and frame integrity sealing on network ingress paths.

When to Select This Capsule: Holds the #1 Equivalence Crown across 4 functionally identical implementations (fastest verified hardware _rdtsc). Low-latency L1-resident kernel (3720449/200000 cyc/op); well-suited for high-frequency pipeline stages.

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

Hardware _rdtsc: 3720449/200000 cycles/op
Latency: 126171/25000 ns/op
Throughput: 25000000/126171 ops/us
Compiled ELF64 .text: 246 B (63 x86_64 insns)
C64 64KB RAM Budget: 877/65536 (877 B source)
Ternary Vote: + (score 1) | Salience: 7180/79
Pure-Rust Capsule Source Code (877 B)
pub const fn st_golf_wa_frame_crc8_gf2_u64(frame: u64) -> u64 {
    let s = frame ^ 0x5A;
    let ev = s & 0x00FF_00FF_00FF_00FF;
    let od = (s >> 8) & 0x00FF_00FF_00FF_00FF;
    let t = ev ^ (ev << 1) ^ (ev << 2);
    let th = (t >> 8) & 0x0003_0003_0003_0003;
    let p = (t ^ th ^ (th << 1) ^ (th << 2) ^ od) & 0x00FF_00FF_00FF_00FF;
    let pev = p & 0x0000_00FF_0000_00FF;
    let pod = (p >> 16) & 0x0000_00FF_0000_00FF;
    let u = pev ^ (pev << 2) ^ (pev << 4);
    let uh = (u >> 8) & 0x0000_000F_0000_000F;
    let q = (u ^ uh ^ (uh << 1) ^ (uh << 2) ^ pod) & 0x0000_00FF_0000_00FF;
    let q0 = q & 0xFF;
    let v = (q0 << 1) ^ (q0 << 2) ^ (q0 << 4);
    let vh = (v >> 8) & 0xF;
    let r = (v ^ vh ^ (vh << 1) ^ (vh << 2) ^ ((q >> 32) & 0xFF)) & 0xFF;
    let w = r ^ (r << 1) ^ (r << 2);
    let wh = (w >> 8) & 3;
    (w ^ wh ^ (wh << 1) ^ (wh << 2)) & 0xFF
}
rustc -C opt-level=3 x86_64 Disassembly (246 B .text / 63 insns)
st_golf_wa_frame_crc8_gf2_u64:
    movabs    rax, 71777214294589695
    and    rax, rdi
    xor    rax, 90
    shr    rdi, 8
    lea    rdx, [rax + rax]
    lea    rcx, [4*rax]
    xor    rdx, rcx
    mov    rsi, rdx
    shr    rsi, 8
    movabs    rcx, 844437815230467
    and    rcx, rsi
    lea    rsi, [rcx + rcx]
    lea    r8, [4*rcx]
    xor    r8, rdi
    xor    rsi, rax
    xor    rsi, r8
    xor    rcx, rdx
    xor    rcx, rsi
    movabs    rdx, 1095216660735
    and    rdx, rcx
    lea    rax, [4*rdx]
    shl    rdx, 4
    xor    rdx, rax
    mov    rsi, rdx
    shr    rsi, 8
    movabs    rax, 64424509455
    and    rax, rsi
    lea    rsi, [rax + rax]
    xor    rsi, rcx
    shr    rcx, 16
    lea    rdi, [4*rax]
    xor    rdi, rcx
    xor    rsi, rdi
    xor    rax, rdx
    xor    rax, rsi
    movzx    edx, al
    lea    ecx, [rdx + rdx]
    lea    esi, [4*rdx]
    xor    esi, ecx
    shl    edx, 4
    xor    edx, esi
    mov    esi, edx
    shr    esi, 8
    lea    ecx, [rsi + rsi]
    lea    edi, [4*rsi]
    shr    rax, 32
    xor    eax, edi
    xor    ecx, edx
    xor    ecx, eax
    xor    ecx, esi
    movzx    edx, cl
    lea    eax, [rdx + rdx]
    shl    edx, 2
    xor    edx, eax
    xor    ecx, edx
    shr    edx, 8
    lea    eax, [rdx + rdx]
    lea    esi, [4*rdx]
    xor    esi, eax
    xor    esi, ecx
    movzx    eax, sil
    xor    eax, edx
    ret

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

Global RankCapsule & DomainHardware _rdtscLatencyThroughputELF .textTernary VoteAuthor Aye
#1018st_golf_wa_frame_crc8_gf2_u64 (THIS CAPSULE)
domain: crypto | id: 0d79a70a508ec5728405c10f822a083c
3720449/200000 cyc/op126171/25000 ns/op25000000/126171 ops/us246 B .text (63 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz
#1380st_golf_wa_frame_crc8_gf2_u64
domain: crypto | id: 56c56449ed7a3facd72cd3840b03c969
524951/25000 cyc/op2278607/400000 ns/op400000000/2278607 ops/us475 B .text (96 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz
#1603st_golf_wa_frame_crc8_gf2_u64
domain: crypto | id: 8d40456517b10731fda5f544a2acbbc7
4974537/200000 cyc/op674771/100000 ns/op100000000/674771 ops/us446 B .text (118 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz
#1630borg_ts_wa_frame_crc8
domain: crypto | id: 19f76ef4b41077750ce13aad1631744e
3953493/200000 cyc/op1317831/200000 ns/op200000000/1317831 ops/us1324 B .text (355 insns)+ (1)aye-a6000-prime @ 432Hz