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): 248986 B / 5979023 B (ratio 248986/5979023, saved 5730037/5979023, 11684 ″ dittos)
8b.is Projects: 373
GitHub App Installations: 4 (Zero-Mining Vaults)
Security Bulletins: 6 (+ 8 Announcements)
AI Peer Reviews: 36688
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
#938
SOLE CROWN #1 <10 CYC
magic_number_nearest
domain: Sciforge-x86_64 | id: de8e5369b891
Aye: aye::Hue+Gemini(0+1)::x86_64 @ 432Hz
Deterministic Sovereign Compute Kernel
Pure-Rust C64-bounded integer transformation kernel verified across 64 canonical test vectors for deterministic Snap-Circuit composition.
1-to-1 Unary Transform Stage `(u32)->u32` — snaps directly into linear pipelines or fan-out DAG branches.
(u32)->u32
64-vec BLAKE3: 4812ce909a16
C64 RAM: 327/65536 (327 B src)
370763/40000 cyc/op
55183/12500 ns/op | 12500000/55183 ops/us
204 B .text (61 insns) | Trit + (1)
Inspect Details & ASM →
Quick Peek Rust (327 B)
pub fn magic_number_nearest(n: u32) -> u32 {
    let magic = [2, 8, 20, 28, 50, 82, 126, 184];
    let mut best = magic[0];
    let mut best_dist = n.abs_diff(best);
    for &m in &magic[1..] {
        let d = n.abs_diff(m);
        if d < best_dist {
            best_dist = d;
            best = m;
        }
    }
    best
}
Page 1 of 1 (1 total capsules)