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: Sole canonical implementation for its 64-vector functional equivalence class. Sub-10-cycle hardware kernel (1300123/200000 cyc/op); safe for ultra-hot per-sample or per-packet inner loops.

Snap-Circuit Wiring Role: Specialized Multi-Pin Stage `(u64,u64)->u16` — wire matching input pins via `snap_dag` or `snap_pipeline`.

Hardware _rdtsc: 1300123/200000 cycles/op
Latency: 14109/8000 ns/op
Throughput: 8000000/14109 ops/us
Compiled ELF64 .text: 95 B (27 x86_64 insns)
C64 64KB RAM Budget: 87/16384 (348 B source)
Ternary Vote: + (score 1) | Salience: 16465/182
Pure-Rust Capsule Source Code (348 B)
pub const fn phoenix_decay_q15(t_sec: u64, tau_sec: u64) -> u16 { if tau_sec == 0 { return 32_768; } let tau = (if tau_sec > 1_000_000 { 1_000_000 } else { tau_sec }) as u128; let t = (if t_sec > 10_000_000 { 10_000_000 } else { t_sec }) as u128; let num = 4 * tau * tau * 32_768; let den = 4 * tau * tau + 4 * tau * t + t * t; (num / den) as u16 }
rustc -C opt-level=3 x86_64 Disassembly (95 B .text / 27 insns)
phoenix_decay_q15:
    test    rsi, rsi
    je    .LBB7_1
    cmp    rsi, 1000000
    mov    eax, 1000000
    cmovb    rax, rsi
    lea    edx, [4*rax]
    cmp    rdi, 10000000
    mov    ecx, 10000000
    cmovb    rcx, rdi
    lea    rsi, [rax + rcx]
    imul    rsi, rdx
    imul    rcx, rcx
    add    rcx, rsi
    imul    rax, rdx
    shl    rax, 15
    mov    rdx, rax
    or    rdx, rcx
    shr    rdx, 32
    je    .LBB7_4
    xor    edx, edx
    div    rcx
    ret
.LBB7_1:
    mov    ax, -32768
    ret
.LBB7_4:
    xor    edx, edx
    div    ecx
    ret

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

Global RankCapsule & DomainHardware _rdtscLatencyThroughputELF .textTernary VoteAuthor Aye
#41phoenix_decay_q15 (THIS CAPSULE)
domain: ayecast-x86_64 | id: e38128c8e80142ad664486e5534148e5
1300123/200000 cyc/op14109/8000 ns/op8000000/14109 ops/us95 B .text (27 insns)+ (1)aye::Hue+Gemini(0+1)::x86_64 @ 432Hz