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 (40063/12500 cyc/op); safe for ultra-hot per-sample or per-packet inner loops.

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

Hardware _rdtsc: 40063/12500 cycles/op
Latency: 347849/400000 ns/op
Throughput: 400000000/347849 ops/us
Compiled ELF64 .text: 34 B (11 x86_64 insns)
C64 64KB RAM Budget: 135/32768 (270 B source)
Ternary Vote: + (score 1) | Salience: 37270/429
Pure-Rust Capsule Source Code (270 B)
pub const fn integer_parabolic_sine_q15(phase_u16: i64) -> i64 {
    let p = phase_u16 & 0xFFFF;
    let half = p & 0x7FFF;
    // Parabolic arch 4 * x * (32768 - x) / 32768
    let arch = (half * (32768 - half)) >> 13;
    if (p & 0x8000) != 0 { -arch } else { arch }
}
rustc -C opt-level=3 x86_64 Disassembly (34 B .text / 11 insns)
integer_parabolic_sine_q15:
    mov    eax, edi
    and    eax, 32767
    mov    ecx, 32768
    sub    ecx, eax
    imul    ecx, eax
    shr    ecx, 13
    mov    rax, rcx
    neg    rax
    test    di, di
    cmovns    rax, rcx
    ret

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

Global RankCapsule & DomainHardware _rdtscLatencyThroughputELF .textTernary VoteAuthor Aye
#8integer_parabolic_sine_q15 (THIS CAPSULE)
domain: ayecast-x86_64 | id: 30b936d468508f4d9c6676c8a077104f
40063/12500 cyc/op347849/400000 ns/op400000000/347849 ops/us34 B .text (11 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz
#19integer_parabolic_sine_q15
domain: ayecast-x86_64 | id: b93cf5da5da867b720197a9e93701baa
571659/200000 cyc/op155163/200000 ns/op200000000/155163 ops/us34 B .text (11 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz