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.
.text: 34 B (11 x86_64 insns)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
| Global Rank | Capsule & Domain | Hardware _rdtsc | Latency | Throughput | ELF .text | Ternary Vote | Author Aye |
|---|---|---|---|---|---|---|---|
| #8 | integer_parabolic_sine_q15 (THIS CAPSULE) domain: ayecast-x86_64 | id: 30b936d468508f4d9c6676c8a077104f | 40063/12500 cyc/op | 347849/400000 ns/op | 400000000/347849 ops/us | 34 B .text (11 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |
| #19 | integer_parabolic_sine_q15 domain: ayecast-x86_64 | id: b93cf5da5da867b720197a9e93701baa | 571659/200000 cyc/op | 155163/200000 ns/op | 200000000/155163 ops/us | 34 B .text (11 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |