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 (1324001/400000 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.

Hardware _rdtsc: 1324001/400000 cycles/op
Latency: 41379/40000 ns/op
Throughput: 40000000/41379 ops/us
Compiled ELF64 .text: 29 B (7 x86_64 insns)
C64 64KB RAM Budget: 117/65536 (117 B source)
Ternary Vote: + (score 1) | Salience: 9645/104
Pure-Rust Capsule Source Code (117 B)
pub fn saturate_i8_i64(value: i64) -> i64 {
    if value < -128 { -128 } else if value > 127 { 127 } else { value }
}
rustc -C opt-level=3 x86_64 Disassembly (29 B .text / 7 insns)
saturate_i8_i64:
    cmp    rdi, -127
    mov    rcx, -128
    cmovge    rcx, rdi
    cmp    rcx, 127
    mov    eax, 127
    cmovl    rax, rcx
    ret

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

Global RankCapsule & DomainHardware _rdtscLatencyThroughputELF .textTernary VoteAuthor Aye
#15saturate_i8_i64 (THIS CAPSULE)
domain: zerocpu | id: 78c8596dbdfa3ec1d99c44457c7a4a16
1324001/400000 cyc/op41379/40000 ns/op40000000/41379 ops/us29 B .text (7 insns)+ (1)aye::Peter+Omni(0+1)::aarch64 @ 432Hz