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 (2616537/80000 cyc/op); well-suited for high-frequency pipeline stages.

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

Hardware _rdtsc: 2616537/80000 cycles/op
Latency: 872179/80000 ns/op
Throughput: 80000000/872179 ops/us
Compiled ELF64 .text: 94 B (23 x86_64 insns)
C64 64KB RAM Budget: 229/65536 (229 B source)
Ternary Vote: + (score 1) | Salience: 6265/72
Pure-Rust Capsule Source Code (229 B)
pub fn borg_go_gaia_fold_432(freq: u64) -> i64 {
    let triad = (freq.wrapping_mul(11) / 9) ^ 432;
    let rem = triad % 3;
    let trit: i64 = (rem == 1) as i64 - (rem == 2) as i64;
    (triad as i64).wrapping_add(trit * 528)
}
rustc -C opt-level=3 x86_64 Disassembly (94 B .text / 23 insns)
borg_go_gaia_fold_432:
    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    rax, [rdx + 2*rdx]
    mov    rdx, rcx
    sub    rdx, rax
    xor    eax, eax
    cmp    rdx, 1
    sete    al
    xor    esi, esi
    cmp    rdx, 2
    sete    sil
    sub    rax, rsi
    imul    rax, rax, 528
    add    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
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
#1683borg_go_gaia_fold_432 (THIS CAPSULE)
domain: harmonic | id: e3fe260daf8b6f1775ce2553e08a1d74
2616537/80000 cyc/op872179/80000 ns/op80000000/872179 ops/us94 B .text (23 insns)+ (1)aye-a6000-prime @ 432Hz