Best Use & Engineering Application Guide

Engineering Category: Deterministic Sovereign Compute Kernel

Best Use in Production: Pure-Rust C64-bounded integer transformation kernel verified across 64 canonical test vectors for deterministic Snap-Circuit composition.

When to Select This Capsule: Verified baseline member of a 2-capsule Equivalence Class; useful as a reference or cross-validation peer. Low-latency L1-resident kernel (7475217/400000 cyc/op); well-suited for high-frequency pipeline stages.

Snap-Circuit Wiring Role: 1-to-1 Unary Transform Stage `(u64)->u64` — snaps directly into linear pipelines or fan-out DAG branches.

Hardware _rdtsc: 7475217/400000 cycles/op
Latency: 2491739/400000 ns/op
Throughput: 400000000/2491739 ops/us
Compiled ELF64 .text: 49 B (11 x86_64 insns)
C64 64KB RAM Budget: 95/32768 (190 B source)
Ternary Vote: + (score 1) | Salience: 800/9
Pure-Rust Capsule Source Code (190 B)
pub fn borg_rs_qwave_triad_phase(phase: u64) -> u64 {
    let num = phase.wrapping_mul(11).wrapping_add(528);
    let folded = (num / 9) ^ 432;
    folded.rotate_left(7) ^ (phase & 0xFFFF)
}
rustc -C opt-level=3 x86_64 Disassembly (49 B .text / 11 insns)
borg_rs_qwave_triad_phase:
    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
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
#1567borg_rs_qwave_triad_phase (THIS CAPSULE)
domain: harmonic | id: f744523dabcddfdce744afd15ae511c8
7475217/400000 cyc/op2491739/400000 ns/op400000000/2491739 ops/us49 B .text (11 insns)+ (1)aye-a6000-prime @ 432Hz