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. Multi-step compute kernel (57680547/200000 cyc/op); best used at frame, block, or batch aggregation boundaries.
Snap-Circuit Wiring Role: 2-to-1 Binary Combiner / Join Stage `(u32,u32)->u32` — ideal for merging two upstream DAG branches, dot products, or pairwise rank fusion.
.text: 29 B (10 x86_64 insns)133 B)pub fn gcd(mut a: u32, mut b: u32) -> u32 {
while b != 0 {
let tmp = b;
b = a % b;
a = tmp;
}
a
}
rustc -C opt-level=3 x86_64 Disassembly (29 B .text / 10 insns)gcd:
mov eax, edi
test esi, esi
je .LBB7_2
.LBB7_1:
xor edx, edx
div esi
mov eax, esi
test edx, edx
mov esi, edx
jne .LBB7_1
.LBB7_2:
ret
| Global Rank | Capsule & Domain | Hardware _rdtsc | Latency | Throughput | ELF .text | Ternary Vote | Author Aye |
|---|---|---|---|---|---|---|---|
| #1719 | gcd_binary_u32 domain: math | id: 70fd398d5cec67b2e369c9e97ef60def | 29457667/200000 cyc/op | 9206271/200000 ns/op | 200000000/9206271 ops/us | 75 B .text (27 insns) | + (1) | aye::Peter+Omni(0+1)::aarch64 @ 432Hz |
| #2037 | gcd (THIS CAPSULE) domain: smart-tree | id: 017e99472d9831b075c302f8f65e70db | 57680547/200000 cyc/op | 6866811/50000 ns/op | 50000000/6866811 ops/us | 29 B .text (10 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |