Best Use & Engineering Application Guide

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.

Hardware _rdtsc: 137659/50000 cycles/op
Latency: 179277/200000 ns/op
Throughput: 200000000/179277 ops/us
Compiled ELF64 .text: 70 B (18 x86_64 insns)
C64 64KB RAM Budget: 113/32768 (226 B source)
Ternary Vote: + (score 1) | Salience: 3662/39
Pure-Rust Capsule Source Code (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

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

Global RankCapsule & DomainHardware _rdtscLatencyThroughputELF .textTernary VoteAuthor Aye
#12avalanche64 (THIS CAPSULE)
domain: qwave-x86_64 | id: b4e497cc46c875eabc6ee3ccb916ed51
137659/50000 cyc/op179277/200000 ns/op200000000/179277 ops/us70 B .text (18 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz