rustc -C opt-level=3): 2049 (203973 B .text / 53737 insns)22/9 Hz): 248909 B / 5979027 B (ratio 248909/5979027, saved 5730118/5979027, 11698 ″ dittos)| Rank & Crown | Function Name & Domain | Best Use & Snap-Circuit Role | Pin Signature & 64-Vec Hash | Hardware _rdtsc (p/q) | Details & Quick Peek |
|---|---|---|---|---|---|
| #630 SOLE CROWN #1 | fx_sqrt_q16 domain: fixed-point | id: 46fe68ba0b32Aye: aye::Peter+Omni(0+1)::aarch64 @ 432Hz | Exact Integer Number Theory & Transcendentals Hardware-verified modular arithmetic, integer roots, and combinatorial invariants for exact rational math engines and cryptographic primitives. 1-to-1 Unary Transform Stage `(i64)->i64` — snaps directly into linear pipelines or fan-out DAG branches. | (i64)->i6464-vec BLAKE3: 5f315382a2edC64 RAM: 117/16384 (468 B src) | 6471/500 cyc/op 404479/100000 ns/op | 100000000/404479 ops/us 478 B .text (154 insns) | Trit + (1) | Inspect Details & ASM →Quick Peek Rust (468 B)pub fn fx_sqrt_q16(value: i64) -> i64 {
// sqrt of a Q16.16 raw value, staying in Q16.16: sqrt(v * 2^16) * 2^16.
// Guarded so any i64 lands in range: negatives and the shift-overflow
// headroom both clamp, and the result is exact integer isqrt -- no float.
const FRAC: u32 = 16;
if value <= 0 {
return 0;
}
let headroom = i64::MAX >> FRAC;
let raw = if value > headroom { headroom } else { value };
(raw << FRAC).isqrt()
} |