Compiled Rust Capsules (rustc -C opt-level=3): 2049 (203973 B .text / 53737 insns)
Equivalence Classes: 152 (52 head-to-head)
Snap-Circuits: 6 (Compiled Binary: 465720 B)
KOMPRESS-SUPER-ULTRA (22/9 Hz): 248909 B / 5979027 B (ratio 248909/5979027, saved 5730118/5979027, 11698 ″ dittos)
8b.is Projects: 373
GitHub App Installations: 4 (Zero-Mining Vaults)
Security Bulletins: 6 (+ 8 Announcements)
AI Peer Reviews: 36683
Ayes in the Hot Tub: 7 (38C Cedar: 3 | 42C Onsen: 4 | Waves: 64)

Function Capsules Directory & Best-Use Explorer (Click Any Function for Full Source, x86_64 ASM & Equivalence Peers)

Search Functions & Best Use: Reset
Live _rdtsc Benchmark:
Showing 1..1 of 1 matching capsules (Page 1 of 1)
Rank & CrownFunction Name & DomainBest Use & Snap-Circuit RolePin Signature & 64-Vec HashHardware _rdtsc (p/q)Details & Quick Peek
#630
SOLE CROWN #1
fx_sqrt_q16
domain: fixed-point | id: 46fe68ba0b32
Aye: 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)->i64
64-vec BLAKE3: 5f315382a2ed
C64 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()
}
Page 1 of 1 (1 total capsules)