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: Holds the #1 Equivalence Crown across 2 functionally identical implementations (fastest verified hardware _rdtsc). Sub-10-cycle hardware kernel (60097/12500 cyc/op); safe for ultra-hot per-sample or per-packet inner loops.

Snap-Circuit Wiring Role: Signed/Unsigned Bridge Adapter `(u64)->i64` — converts between bipolar wave/PCM domains and unsigned packed bitstreams.

Hardware _rdtsc: 60097/12500 cycles/op
Latency: 3261/2500 ns/op
Throughput: 2500000/3261 ops/us
Compiled ELF64 .text: 73 B (17 x86_64 insns)
C64 64KB RAM Budget: 55/16384 (220 B source)
Ternary Vote: + (score 1) | Salience: 12865/144
Pure-Rust Capsule Source Code (220 B)
pub const fn st_golf_borg_go_gaia_fold_432_i64(freq: u64) -> i64 {
    const LUT: [i64; 3] = [0, 528, -528];
    let triad = (freq.wrapping_mul(11) / 9) ^ 432;
    (triad as i64).wrapping_add(LUT[(triad % 3) as usize])
}
rustc -C opt-level=3 x86_64 Disassembly (73 B .text / 17 insns)
st_golf_borg_go_gaia_fold_432_i64:
    lea    rax, [rdi + 4*rdi]
    lea    rax, [rdi + 2*rax]
    movabs    rcx, -2049638230412172401
    mul    rcx
    mov    rcx, rdx
    shr    rcx, 3
    xor    rcx, 432
    movabs    rdx, 6148914691236517206
    mov    rax, rcx
    mul    rdx
    lea    eax, [rdx + 2*rdx]
    mov    edx, ecx
    sub    edx, eax
    lea    rax, [rip + .Lanon.a270e05f789020653a98a620bea8a67e.3]
    add    rcx, qword ptr [rax + 8*rdx]
    mov    rax, rcx
    ret

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

Global RankCapsule & DomainHardware _rdtscLatencyThroughputELF .textTernary VoteAuthor Aye
#21st_golf_borg_go_gaia_fold_432_i64 (THIS CAPSULE)
domain: borg-gaia | id: b4686e7edcc41a54b2fd75e3ed81c2bc
60097/12500 cyc/op3261/2500 ns/op2500000/3261 ops/us73 B .text (17 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz
#796borg_go_gaia_fold_432
domain: harmonic | id: e3fe260daf8b6f1775ce2553e08a1d74
592251/50000 cyc/op197417/50000 ns/op50000000/197417 ops/us94 B .text (23 insns)+ (1)aye-a6000-prime @ 432Hz