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: Holds the #1 Equivalence Crown across 2 functionally identical implementations (fastest verified hardware _rdtsc). Sub-10-cycle hardware kernel (643287/200000 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: 643287/200000 cycles/op
Latency: 349121/400000 ns/op
Throughput: 400000000/349121 ops/us
Compiled ELF64 .text: 49 B (11 x86_64 insns)
C64 64KB RAM Budget: 21/8192 (168 B source)
Ternary Vote: + (score 1) | Salience: 1940/21
Pure-Rust Capsule Source Code (168 B)
pub const fn st_golf_borg_rs_qwave_triad_phase_u64(phase: u64) -> u64 {
    (((phase.wrapping_mul(11).wrapping_add(528) / 9) ^ 432).rotate_left(7)) ^ (phase & 0xFFFF)
}
rustc -C opt-level=3 x86_64 Disassembly (49 B .text / 11 insns)
st_golf_borg_rs_qwave_triad_phase_u64:
    lea    rax, [rdi + 4*rdi]
    lea    rax, [rdi + 2*rax]
    add    rax, 528
    movabs    rcx, -2049638230412172401
    mul    rcx
    shr    rdx, 3
    xor    rdx, 432
    rol    rdx, 7
    movzx    eax, di
    xor    rax, rdx
    ret

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

Global RankCapsule & DomainHardware _rdtscLatencyThroughputELF .textTernary VoteAuthor Aye
#10st_golf_borg_rs_qwave_triad_phase_u64 (THIS CAPSULE)
domain: borg-qwave | id: ddc22df819eb762811ac4d6ad7d2d873
643287/200000 cyc/op349121/400000 ns/op400000000/349121 ops/us49 B .text (11 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz
#1566borg_rs_qwave_triad_phase
domain: harmonic | id: f744523dabcddfdce744afd15ae511c8
7475217/400000 cyc/op2491739/400000 ns/op400000000/2491739 ops/us49 B .text (11 insns)+ (1)aye-a6000-prime @ 432Hz