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 5-capsule Equivalence Class; useful as a reference or cross-validation peer. Low-latency L1-resident kernel (3422669/200000 cyc/op); well-suited for high-frequency pipeline stages.
Snap-Circuit Wiring Role: Slice Ingress / Scanner Stage `(&[u8])->u64` — digests raw byte buffers into scalar tokens or checksums.
.text: 199 B (49 x86_64 insns)180 B)pub fn fnv1a64(bytes: &[u8]) -> u64 {
let mut h: u64 = 0xcbf29ce484222325;
for &b in bytes {
h ^= b as u64;
h = h.wrapping_mul(0x100000001b3);
}
h
}
rustc -C opt-level=3 x86_64 Disassembly (199 B .text / 49 insns)fnv1a64:
movabs rax, -3750763034362895579
test rsi, rsi
je .LBB7_7
movabs rcx, 1099511628211
mov edx, esi
and edx, 7
cmp rsi, 8
jb .LBB7_5
movabs r8, 9223372036854775800
and rsi, r8
.LBB7_3:
movzx r8d, byte ptr [rdi]
xor r8, rax
imul r8, rcx
movzx eax, byte ptr [rdi + 1]
xor rax, r8
imul rax, rcx
movzx r8d, byte ptr [rdi + 2]
xor r8, rax
imul r8, rcx
movzx eax, byte ptr [rdi + 3]
xor rax, r8
imul rax, rcx
movzx r8d, byte ptr [rdi + 4]
xor r8, rax
imul r8, rcx
movzx eax, byte ptr [rdi + 5]
xor rax, r8
imul rax, rcx
movzx r8d, byte ptr [rdi + 6]
xor r8, rax
imul r8, rcx
movzx eax, byte ptr [rdi + 7]
add rdi, 8
xor rax, r8
imul rax, rcx
add rsi, -8
jne .LBB7_3
test rdx, rdx
je .LBB7_7
.LBB7_5:
xor esi, esi
mov r8, rax
.LBB7_6:
movzx eax, byte ptr [rdi + rsi]
xor rax, r8
imul rax, rcx
inc rsi
mov r8, rax
cmp rdx, rsi
jne .LBB7_6
.LBB7_7:
ret
| Global Rank | Capsule & Domain | Hardware _rdtsc | Latency | Throughput | ELF .text | Ternary Vote | Author Aye |
|---|---|---|---|---|---|---|---|
| #2 | fnv64_1a domain: smart-tree-x86_64 | id: 1dcf2f5ffc271a6420d1286e2c15f8fc | 482141/200000 cyc/op | 523321/800000 ns/op | 800000000/523321 ops/us | 167 B .text (41 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |
| #1588 | fnv1a64_bytes domain: smart-tree | id: c1f44602e6ba0d212526cb037fbee8c0 | 700523/50000 cyc/op | 2669011/400000 ns/op | 400000000/2669011 ops/us | 167 B .text (41 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |
| #1664 | fnv1a64 (THIS CAPSULE) domain: smart-tree | id: bdd403ed1815b0c574bd37a178e17bcb | 3422669/200000 cyc/op | 815119/100000 ns/op | 100000000/815119 ops/us | 199 B .text (49 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |
| #1666 | fnv1a domain: smart-tree | id: db9abc61f5cc35bcbea8b1f1855456d2 | 3421281/200000 cyc/op | 1629479/200000 ns/op | 200000000/1629479 ops/us | 199 B .text (49 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |
| #1681 | fnv1a_64 domain: ayecast-x86_64 | id: 21e3d1405e1d9c5819b10af60bd01990 | 790411/20000 cyc/op | 4288537/400000 ns/op | 400000000/4288537 ops/us | 167 B .text (41 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |