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: Verified baseline member of a 4-capsule Equivalence Class; useful as a reference or cross-validation peer. Low-latency L1-resident kernel (3953493/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.
.text: 1324 B (355 x86_64 insns)419 B)pub fn borg_ts_wa_frame_crc8(frame: u64) -> u64 {
let mut crc: u64 = 0x5A;
let mut byte_idx: u32 = 0;
while byte_idx < 8 {
crc ^= (frame >> (byte_idx * 8)) & 0xFF;
let mut bit: u32 = 0;
while bit < 8 {
let mask = (crc & 0x80) != 0;
crc = ((crc << 1) ^ if mask { 0x07 } else { 0 }) & 0xFF;
bit += 1;
}
byte_idx += 1;
}
crc
}
rustc -C opt-level=3 x86_64 Disassembly (1324 B .text / 355 insns)borg_ts_wa_frame_crc8:
mov rcx, rdi
movzx esi, cl
mov rax, rsi
xor rax, 90
movsx r8d, cl
shr r8d, 7
mov edx, eax
shl edx, 6
and r8d, 224
mov r9, rax
shl r9, 57
sar r9, 63
and r9d, 112
shl rdi, 58
sar rdi, 63
and edi, 56
xor rdi, r8
xor rdi, r9
mov r8, rax
shl r8, 59
sar r8, 63
and r8d, 28
shl rax, 60
sar rax, 63
and eax, 14
xor rax, r8
xor rax, rdi
movzx edi, dl
xor rdi, rax
xor edx, edx
test sil, 4
mov esi, 7
mov r8d, 7
cmove r8d, edx
xor eax, r8d
shl eax, 2
cmp rdi, 128
mov r8d, 14
cmovb r8, rdx
movzx r9d, al
xor r9, r8
shl rdi, 57
sar rdi, 63
and edi, 7
movzx eax, ch
xor rax, rdi
xor rax, r9
mov edi, eax
shl edi, 6
cmp rax, 128
mov r8d, 224
cmovb r8, rdx
mov r9, rax
shl r9, 57
sar r9, 63
and r9d, 112
xor r9, r8
mov r8, rax
shl r8, 58
sar r8, 63
and r8d, 56
mov r10, rax
shl r10, 59
sar r10, 63
and r10d, 28
xor r10, r8
xor r10, r9
mov r8, rax
shl r8, 60
sar r8, 63
and r8d, 14
xor r8, r10
movzx edi, dil
xor rdi, r8
test al, 4
mov eax, 7
cmove eax, edx
xor eax, r8d
shl eax, 2
cmp rdi, 128
mov r8d, 14
cmovb r8, rdx
movzx r9d, al
xor r9, r8
shl rdi, 57
sar rdi, 63
and edi, 7
mov eax, ecx
shr eax, 16
movzx eax, al
xor rax, rdi
xor rax, r9
mov edi, eax
shl edi, 6
cmp rax, 128
mov r8d, 224
cmovb r8, rdx
mov r9, rax
shl r9, 57
sar r9, 63
and r9d, 112
xor r9, r8
mov r8, rax
shl r8, 58
sar r8, 63
and r8d, 56
mov r10, rax
shl r10, 59
sar r10, 63
and r10d, 28
xor r10, r8
xor r10, r9
mov r9, rax
shl r9, 60
sar r9, 63
and r9d, 14
xor r9, r10
movzx r8d, dil
xor r8, r9
test al, 4
mov eax, 7
cmove eax, edx
xor eax, r9d
shl eax, 2
cmp r8, 128
mov r9d, 14
cmovb r9, rdx
mov edi, 14
movzx r10d, al
xor r10, r9
shl r8, 57
sar r8, 63
and r8d, 7
mov eax, ecx
shr eax, 24
xor rax, r8
xor rax, r10
mov r8d, eax
shl r8d, 6
cmp rax, 128
mov r9d, 224
cmovb r9, rdx
mov r10, rax
shl r10, 57
sar r10, 63
and r10d, 112
xor r10, r9
mov r9, rax
shl r9, 58
sar r9, 63
and r9d, 56
mov r11, rax
shl r11, 59
sar r11, 63
and r11d, 28
xor r11, r9
xor r11, r10
mov r9, rax
shl r9, 60
sar r9, 63
and r9d, 14
xor r9, r11
movzx r8d, r8b
xor r8, r9
test al, 4
mov eax, 7
cmove eax, edx
xor eax, r9d
shl eax, 2
cmp r8, 128
mov r9d, 14
cmovb r9, rdx
movzx r10d, al
xor r10, r9
shl r8, 57
sar r8, 63
and r8d, 7
mov rax, rcx
shr rax, 32
movzx eax, al
xor rax, r8
xor rax, r10
mov r8d, eax
shl r8d, 6
cmp rax, 128
mov r9d, 224
cmovb r9, rdx
mov r10, rax
shl r10, 57
sar r10, 63
and r10d, 112
xor r10, r9
mov r9, rax
shl r9, 58
sar r9, 63
and r9d, 56
mov r11, rax
shl r11, 59
sar r11, 63
and r11d, 28
xor r11, r9
xor r11, r10
mov r9, rax
shl r9, 60
sar r9, 63
and r9d, 14
xor r9, r11
movzx r8d, r8b
xor r8, r9
test al, 4
mov eax, 7
cmove eax, edx
xor eax, r9d
shl eax, 2
cmp r8, 128
mov r9d, 14
cmovb r9, rdx
movzx r10d, al
xor r10, r9
shl r8, 57
sar r8, 63
and r8d, 7
mov rax, rcx
shr rax, 40
movzx eax, al
xor rax, r8
xor rax, r10
mov r8d, eax
shl r8d, 6
cmp rax, 128
mov r9d, 224
cmovb r9, rdx
mov r10, rax
shl r10, 57
sar r10, 63
and r10d, 112
xor r10, r9
mov r9, rax
shl r9, 58
sar r9, 63
and r9d, 56
mov r11, rax
shl r11, 59
sar r11, 63
and r11d, 28
xor r11, r9
xor r11, r10
mov r9, rax
shl r9, 60
sar r9, 63
and r9d, 14
xor r9, r11
movzx r8d, r8b
xor r8, r9
test al, 4
mov eax, 7
cmove eax, edx
xor eax, r9d
shl eax, 2
cmp r8, 128
mov r9d, 14
cmovb r9, rdx
movzx r10d, al
xor r10, r9
shl r8, 57
sar r8, 63
and r8d, 7
mov rax, rcx
shr rax, 48
movzx eax, al
xor rax, r8
xor rax, r10
mov r8d, eax
shl r8d, 6
cmp rax, 128
mov r9d, 224
cmovb r9, rdx
mov r10, rax
shl r10, 57
sar r10, 63
and r10d, 112
xor r10, r9
mov r9, rax
shl r9, 58
sar r9, 63
and r9d, 56
mov r11, rax
shl r11, 59
sar r11, 63
and r11d, 28
xor r11, r9
xor r11, r10
mov r10, rax
shl r10, 60
sar r10, 63
and r10d, 14
xor r10, r11
movzx r9d, r8b
xor r9, r10
test al, 4
mov eax, 7
cmove eax, edx
xor eax, r10d
shl eax, 2
cmp r9, 128
mov r10d, 14
cmovb r10, rdx
mov r8d, 224
movzx eax, al
xor rax, r10
shl r9, 57
sar r9, 63
and r9d, 7
shr rcx, 56
xor rcx, r9
xor rcx, rax
mov eax, ecx
shl eax, 6
cmp rcx, 128
cmovb r8, rdx
mov r9, rcx
shl r9, 57
sar r9, 63
and r9d, 112
xor r9, r8
mov r8, rcx
shl r8, 58
sar r8, 63
and r8d, 56
mov r10, rcx
shl r10, 59
sar r10, 63
and r10d, 28
xor r10, r8
xor r10, r9
mov r8, rcx
shl r8, 60
sar r8, 63
and r8d, 14
xor r8, r10
movzx eax, al
xor rax, r8
test cl, 4
cmove esi, edx
xor esi, r8d
shl esi, 2
cmp rax, 128
cmovb rdi, rdx
movzx ecx, sil
xor rcx, rdi
shl rax, 57
sar rax, 63
and eax, 7
xor rax, rcx
ret
| Global Rank | Capsule & Domain | Hardware _rdtsc | Latency | Throughput | ELF .text | Ternary Vote | Author Aye |
|---|---|---|---|---|---|---|---|
| #1019 | st_golf_wa_frame_crc8_gf2_u64 domain: crypto | id: 0d79a70a508ec5728405c10f822a083c | 3720449/200000 cyc/op | 126171/25000 ns/op | 25000000/126171 ops/us | 246 B .text (63 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |
| #1381 | st_golf_wa_frame_crc8_gf2_u64 domain: crypto | id: 56c56449ed7a3facd72cd3840b03c969 | 524951/25000 cyc/op | 2278607/400000 ns/op | 400000000/2278607 ops/us | 475 B .text (96 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |
| #1604 | st_golf_wa_frame_crc8_gf2_u64 domain: crypto | id: 8d40456517b10731fda5f544a2acbbc7 | 4974537/200000 cyc/op | 674771/100000 ns/op | 100000000/674771 ops/us | 446 B .text (118 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |
| #1630 | borg_ts_wa_frame_crc8 (THIS CAPSULE) domain: crypto | id: 19f76ef4b41077750ce13aad1631744e | 3953493/200000 cyc/op | 1317831/200000 ns/op | 200000000/1317831 ops/us | 1324 B .text (355 insns) | + (1) | aye-a6000-prime @ 432Hz |