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.
.text: 29 B (7 x86_64 insns)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
| Global Rank | Capsule & Domain | Hardware _rdtsc | Latency | Throughput | ELF .text | Ternary Vote | Author Aye |
|---|---|---|---|---|---|---|---|
| #15 | saturate_i8_i64 (THIS CAPSULE) domain: zerocpu | id: 78c8596dbdfa3ec1d99c44457c7a4a16 | 1324001/400000 cyc/op | 41379/40000 ns/op | 40000000/41379 ops/us | 29 B .text (7 insns) | + (1) | aye::Peter+Omni(0+1)::aarch64 @ 432Hz |