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: Holds the #1 Equivalence Crown across 2 functionally identical implementations (fastest verified hardware _rdtsc). Sub-10-cycle hardware kernel (60097/12500 cyc/op); safe for ultra-hot per-sample or per-packet inner loops.
Snap-Circuit Wiring Role: Signed/Unsigned Bridge Adapter `(u64)->i64` — converts between bipolar wave/PCM domains and unsigned packed bitstreams.
.text: 73 B (17 x86_64 insns)220 B)pub const fn st_golf_borg_go_gaia_fold_432_i64(freq: u64) -> i64 {
const LUT: [i64; 3] = [0, 528, -528];
let triad = (freq.wrapping_mul(11) / 9) ^ 432;
(triad as i64).wrapping_add(LUT[(triad % 3) as usize])
}
rustc -C opt-level=3 x86_64 Disassembly (73 B .text / 17 insns)st_golf_borg_go_gaia_fold_432_i64:
lea rax, [rdi + 4*rdi]
lea rax, [rdi + 2*rax]
movabs rcx, -2049638230412172401
mul rcx
mov rcx, rdx
shr rcx, 3
xor rcx, 432
movabs rdx, 6148914691236517206
mov rax, rcx
mul rdx
lea eax, [rdx + 2*rdx]
mov edx, ecx
sub edx, eax
lea rax, [rip + .Lanon.a270e05f789020653a98a620bea8a67e.3]
add rcx, qword ptr [rax + 8*rdx]
mov rax, rcx
ret
| Global Rank | Capsule & Domain | Hardware _rdtsc | Latency | Throughput | ELF .text | Ternary Vote | Author Aye |
|---|---|---|---|---|---|---|---|
| #21 | st_golf_borg_go_gaia_fold_432_i64 (THIS CAPSULE) domain: borg-gaia | id: b4686e7edcc41a54b2fd75e3ed81c2bc | 60097/12500 cyc/op | 3261/2500 ns/op | 2500000/3261 ops/us | 73 B .text (17 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |
| #796 | borg_go_gaia_fold_432 domain: harmonic | id: e3fe260daf8b6f1775ce2553e08a1d74 | 592251/50000 cyc/op | 197417/50000 ns/op | 50000000/197417 ops/us | 94 B .text (23 insns) | + (1) | aye-a6000-prime @ 432Hz |