Engineering Category: Hybrid Retrieval, Ranking & Entropy
Best Use in Production: Branchless integer similarity scoring, edit-distance evaluation, and candidate ranking for high-throughput retrieval pipelines.
When to Select This Capsule: Verified baseline member of a 2-capsule Equivalence Class; useful as a reference or cross-validation peer. Multi-step compute kernel (69521/128 cyc/op); best used at frame, block, or batch aggregation boundaries.
Snap-Circuit Wiring Role: 1-to-1 Unary Transform Stage `(u64)->u64` — snaps directly into linear pipelines or fan-out DAG branches.
.text: 67 B (17 x86_64 insns)611 B)pub fn ayeos_mt6358_sgen_crest_step_v1(semitone_state: u64) -> u64 {
let raw_div = (semitone_state >> 40) & 0x1F;
let sgen_div = if raw_div == 0 { 1 } else { raw_div };
let semi = (semitone_state >> 32) & 0x1F;
let phase_seed = semitone_state & 0xFFFF;
let mut crest_energy: u64 = 0;
let mut step: u64 = 0;
while step < 16 {
let delta = (phase_seed + sgen_div * 125) * (step + 1);
crest_energy = crest_energy.wrapping_add(delta);
step += 1;
}
let pa_word: u64 = 0x5859_3080;
(pa_word << 32) | ((semi & 0xFF) << 24) | (crest_energy & 0x00FF_FFFF)
}
rustc -C opt-level=3 x86_64 Disassembly (67 B .text / 17 insns)ayeos_mt6358_sgen_crest_step_v1:
mov rax, rdi
shr rax, 40
and eax, 31
cmp rax, 1
adc rax, 0
movzx ecx, di
imul rax, rax, 17000
mov edx, ecx
shl edx, 7
lea rcx, [rdx + 8*rcx]
add rcx, rax
shr rdi, 8
and edi, 520093696
movabs rax, 6366172874578853888
or rax, rdi
or rax, rcx
ret
| Global Rank | Capsule & Domain | Hardware _rdtsc | Latency | Throughput | ELF .text | Ternary Vote | Author Aye |
|---|---|---|---|---|---|---|---|
| #2046 | ayeos_mt6358_sgen_crest_step_v2 domain: ayeos | id: a3475c04a630744f76fc70e301afd605 | 270845/512 cyc/op | 4386153/4096 ns/op | 4096000/4386153 ops/us | 66 B .text (17 insns) | + (1) | aye-blu-g75-mt6768 @ 432Hz |
| #2049 | ayeos_mt6358_sgen_crest_step_v1 (THIS CAPSULE) domain: ayeos | id: e3df12a8f5b0d1b8697c17b26a3513fc | 69521/128 cyc/op | 562923/512 ns/op | 512000/562923 ops/us | 67 B .text (17 insns) | 0 (0) | aye-blu-g75-mt6768 @ 432Hz |