Best Use & Engineering Application Guide

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

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

Hardware _rdtsc: 1/1 cycles/op
Latency: 2048167/400000 ns/op
Throughput: 400000000/2048167 ops/us
Compiled ELF64 .text: 38 B (8 x86_64 insns)
C64 64KB RAM Budget: 15/4096 (240 B source)
Ternary Vote: + (score 1) | Salience: 533/6
Pure-Rust Capsule Source Code (240 B)
pub fn ayeos_gate_0x62_fold_step(seed: u64, word: u64, lane_idx: u64) -> u64 {
    let shift = ((lane_idx & 7) << 3) as u32;
    let mixed = seed.rotate_left(7) ^ word.rotate_left(shift) ^ 0x6262_6262_6262_6262;
    (mixed & !0xFF) | 0x62
}
rustc -C opt-level=3 x86_64 Disassembly (38 B .text / 8 insns)
ayeos_gate_0x62_fold_step:
    lea    ecx, [8*rdx]
    shl    rdi, 7
    rol    rsi, cl
    xor    rsi, rdi
    and    rsi, -256
    movabs    rax, 7089336938131513954
    xor    rax, rsi
    ret

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

Global RankCapsule & DomainHardware _rdtscLatencyThroughputELF .textTernary VoteAuthor Aye
#1537ayeos_gate_0x62_fold_step (THIS CAPSULE)
domain: ayeos-rpi | id: 2713856be5c490d5ad9bbeb30fea0ba4
1/1 cyc/op2048167/400000 ns/op400000000/2048167 ops/us38 B .text (8 insns)+ (1)aye::Peter+Omni(0+1)::aarch64 @ 432Hz