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 (2197621/400000 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: 2197621/400000 cycles/op
Latency: 710377/400000 ns/op
Throughput: 400000000/710377 ops/us
Compiled ELF64 .text: 46 B (11 x86_64 insns)
C64 64KB RAM Budget: 313/65536 (313 B source)
Ternary Vote: + (score 1) | Salience: 11870/143
Pure-Rust Capsule Source Code (313 B)
pub fn aurora_pq_quantal_token_id(base_vocab: u64, semantic_code: u64, rvq_stage0: u64) -> u64 {
    let base = if base_vocab == 0 { 151936 } else { base_vocab };
    let p_sem = semantic_code & 8191;
    let q_res = rvq_stage0 & 1023;
    let token_id = base.saturating_add(p_sem);
    (token_id << 10) | q_res
}
rustc -C opt-level=3 x86_64 Disassembly (46 B .text / 11 insns)
aurora_pq_quantal_token_id:
    test    rdi, rdi
    mov    ecx, 151936
    cmovne    rcx, rdi
    and    esi, 8191
    and    edx, 1023
    add    rcx, rsi
    mov    rax, -1
    cmovae    rax, rcx
    shl    rax, 10
    or    rax, rdx
    ret

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

Global RankCapsule & DomainHardware _rdtscLatencyThroughputELF .textTernary VoteAuthor Aye
#42aurora_pq_quantal_token_id (THIS CAPSULE)
domain: signal | id: cb8111b61bd54b1f8831ac38106dd67b
2197621/400000 cyc/op710377/400000 ns/op400000000/710377 ops/us46 B .text (11 insns)+ (1)aye-aurora-8b-voice @ 432Hz