Engineering Category: Marine Salience & Wave Telemetry
Best Use in Production: Stepping 2D wave-grid Laplacian interference and harmonic phase accumulators for wave-based associative memory state updates.
When to Select This Capsule: Sole canonical implementation for its 64-vector functional equivalence class. Sub-10-cycle hardware kernel (137659/50000 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.
.text: 70 B (18 x86_64 insns)226 B)pub const fn avalanche64(mut x: u64) -> u64 {
x ^= x >> 30;
x = x.wrapping_mul(0xbf58_476d_1ce4_e5b9);
x ^= x >> 27;
x = x.wrapping_mul(0x94d0_49bb_1331_11eb);
x ^= x >> 31;
if x == 0 { 1 } else { x }
}
rustc -C opt-level=3 x86_64 Disassembly (70 B .text / 18 insns)avalanche64:
test rdi, rdi
je .LBB7_1
mov rax, rdi
shr rax, 30
xor rax, rdi
movabs rcx, -4658895280553007687
imul rcx, rax
mov rax, rcx
shr rax, 27
xor rax, rcx
movabs rcx, -7723592293110705685
imul rcx, rax
mov rax, rcx
shr rax, 31
xor rax, rcx
ret
.LBB7_1:
mov eax, 1
ret
| Global Rank | Capsule & Domain | Hardware _rdtsc | Latency | Throughput | ELF .text | Ternary Vote | Author Aye |
|---|---|---|---|---|---|---|---|
| #12 | avalanche64 (THIS CAPSULE) domain: qwave-x86_64 | id: b4e497cc46c875eabc6ee3ccb916ed51 | 137659/50000 cyc/op | 179277/200000 ns/op | 200000000/179277 ops/us | 70 B .text (18 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |