Engineering Category: Marine Salience & Wave Telemetry
Best Use in Production: Tracking period and amplitude stability across zero-crossing intervals to score signal salience in noisy real-time sensor and audio streams.
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 (1456039/100000 cyc/op); well-suited for high-frequency pipeline stages.
Snap-Circuit Wiring Role: 1-to-1 Unary Transform Stage `(u64)->u64` — snaps directly into linear pipelines or fan-out DAG branches.
.text: 149 B (41 x86_64 insns)561 B)pub fn a6000_c64_ring_salience_step(packed_telemetry: u64) -> u64 {
const C64_MASK: u64 = 0xFFFF;
let cursor = (packed_telemetry & C64_MASK).wrapping_add(432) & C64_MASK;
let period_q8 = (((packed_telemetry >> 16) & 0xFF).max(24) << 8) as u128;
let amp_q8 = (((packed_telemetry >> 24) & 0xFF).max(1) << 8) as u128;
let ref_period_q8: u128 = 432 << 4;
let jitter_p = period_q8.abs_diff(ref_period_q8);
let stability_q15 = ((32767u128 * 256) / (256 + jitter_p + (amp_q8 >> 4))) as u64;
(cursor << 16) | (stability_q15 & C64_MASK)
}
rustc -C opt-level=3 x86_64 Disassembly (149 B .text / 41 insns)a6000_c64_ring_salience_step:
push rbx
mov rbx, rdi
mov eax, ebx
shr eax, 16
movzx esi, al
cmp rsi, 25
mov eax, 24
cmovae rax, rsi
shl eax, 8
mov edx, ebx
shr edx, 24
cmp rdx, 1
adc rdx, 0
xor ecx, ecx
mov edi, 6912
sub rdi, rax
mov r8d, 0
sbb r8, r8
add rax, -6912
adc rcx, -1
cmp esi, 27
cmovb rcx, r8
cmovb rax, rdi
shl edx, 4
add rdx, 256
add rdx, rax
adc rcx, 0
mov rax, rdx
or rax, rcx
je .LBB7_2
mov edi, 8388352
xor esi, esi
call qword ptr [rip + __udivti3@GOTPCREL]
shl ebx, 16
add ebx, 28311552
movzx eax, ax
or rax, rbx
pop rbx
ret
.LBB7_2:
lea rdi, [rip + .Lanon.a270e05f789020653a98a620bea8a67e.4]
call qword ptr [rip + _RNvNtNtCscNqnBmBaIcL_4core9panicking11panic_const23panic_const_div_by_zero@GOTPCREL]
| Global Rank | Capsule & Domain | Hardware _rdtsc | Latency | Throughput | ELF .text | Ternary Vote | Author Aye |
|---|---|---|---|---|---|---|---|
| #35 | st_golf_a6000_c64_ring_salience_u64 domain: a6000-orchestrator | id: 70216fb88519df76aff4568abb0dd56d | 1184749/200000 cyc/op | 160723/100000 ns/op | 100000000/160723 ops/us | 75 B .text (24 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |
| #1653 | a6000_c64_ring_salience_step (THIS CAPSULE) domain: a6000-orchestrator | id: 86ef1109c9848e3050d8191636528333 | 1456039/100000 cyc/op | 1882619/400000 ns/op | 400000000/1882619 ops/us | 149 B .text (41 insns) | 0 (0) | aye-a6000-prime @ 432Hz |