Engineering Category: Spatial Indexing, Kinematics & Fixed-Point Geometry
Best Use in Production: Deterministic coordinate folding, space-filling curve locality mapping, and fixed-point trajectory kinematics without floating-point non-determinism.
When to Select This Capsule: Sole canonical implementation for its 64-vector functional equivalence class. Low-latency L1-resident kernel (3562473/200000 cyc/op); well-suited for high-frequency pipeline stages.
Snap-Circuit Wiring Role: 1-to-1 Unary Transform Stage `(i64)->i64` — snaps directly into linear pipelines or fan-out DAG branches.
.text: 86 B (17 x86_64 insns)290 B)pub fn borg_zig_vaked_spiral_step(coord: i64) -> i64 {
let x = (coord & 0xFFFF) - 32768;
let y = ((coord >> 16) & 0xFFFF) - 32768;
let nx = ((x * 196 - y * 165) >> 8).wrapping_add(432);
let ny = ((x * 165 + y * 196) >> 8).wrapping_sub(216);
(nx ^ 137).wrapping_add(ny)
}
rustc -C opt-level=3 x86_64 Disassembly (86 B .text / 17 insns)borg_zig_vaked_spiral_step:
movzx eax, di
add rax, -32768
shr edi, 16
add rdi, -32768
imul rcx, rax, 196
imul rdx, rdi, -165
add rdx, rcx
sar rdx, 8
add rdx, 432
imul rax, rax, 165
imul rcx, rdi, 196
add rcx, rax
sar rcx, 8
xor rdx, 137
lea rax, [rcx + rdx]
add rax, -216
ret
| Global Rank | Capsule & Domain | Hardware _rdtsc | Latency | Throughput | ELF .text | Ternary Vote | Author Aye |
|---|---|---|---|---|---|---|---|
| #1574 | borg_zig_vaked_spiral_step (THIS CAPSULE) domain: geometry | id: aea8564606329ce3d98d058f54db6784 | 3562473/200000 cyc/op | 1187491/200000 ns/op | 200000000/1187491 ops/us | 86 B .text (17 insns) | + (1) | aye-a6000-prime @ 432Hz |