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): 248869 B / 5979051 B (ratio 248869/5979051, saved 5730182/5979051, 11695 ″ dittos)
8b.is Projects: 373
GitHub App Installations: 4 (Zero-Mining Vaults)
Security Bulletins: 6 (+ 8 Announcements)
AI Peer Reviews: 36669
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..2 of 2 matching capsules (Page 1 of 1)
Rank & CrownFunction Name & DomainBest Use & Snap-Circuit RolePin Signature & 64-Vec HashHardware _rdtsc (p/q)Details & Quick Peek
#62
SOLE CROWN #1 <10 CYC
power_q30_to_deci_dbfs
domain: smart-tree | id: d3652761ffea
Aye: aye::Hue+Gemini(0+1)::x86_64 @ 432Hz
Lossless Wire & Structural Compression
Zero-allocation integer bit-packing, variable-length encoding, and stream framing for sovereign wire protocols.
Specialized Multi-Pin Stage `(u64)->i32` — wire matching input pins via `snap_dag` or `snap_pipeline`.
(u64)->i32
64-vec BLAKE3: a7f5f440f3ba
C64 RAM: 387/32768 (774 B src)
801813/200000 cyc/op
152763/80000 ns/op | 80000000/152763 ops/us
123 B .text (35 insns) | Trit + (1)
Inspect Details & ASM →
Quick Peek Rust (774 B)
pub const fn power_q30_to_deci_dbfs(power_q30: u64) -> i32 {
    if power_q30 == 0 {
        return -800;
    }
    const FULL_SCALE_Q30: u64 = 1u64 << 30;
    if power_q30 >= FULL_SCALE_Q30 {
        return 0;
    }
    let lz = power_q30.leading_zeros();
    let bit_pos = 63u32.saturating_sub(lz);
    let shift = if bit_pos >= 3 { bit_pos - 3 } else { 0 };
    let mant_idx = ((power_q30 >> shift) & 0x7) as usize;
    const MANT_CENTI_DB: [i32; 8] = [0, 51, 97, 138, 176, 211, 243, 273];
    let steps_below_30 = (30i32 - bit_pos as i32) * 1000;
    let centi_db = -((steps_below_30 * 301) / 1000) + MANT_CENTI_DB[mant_idx];
    let deci_db = centi_db / 10;
    if deci_db < -800 {
        -800
    } else if deci_db > 0 {
        0
    } else {
        deci_db
    }
}
#68
SOLE CROWN #1 <10 CYC
log2_q5_u64
domain: smart-tree | id: 2da3790ba6a3
Aye: aye::Hue+Gemini(0+1)::x86_64 @ 432Hz
Lossless Wire & Structural Compression
Zero-allocation integer bit-packing, variable-length encoding, and stream framing for sovereign wire protocols.
Specialized Multi-Pin Stage `(u64)->i32` — wire matching input pins via `snap_dag` or `snap_pipeline`.
(u64)->i32
64-vec BLAKE3: db9aabfdb4de
C64 RAM: 295/65536 (295 B src)
952133/200000 cyc/op
181393/80000 ns/op | 80000000/181393 ops/us
51 B .text (17 insns) | Trit + (1)
Inspect Details & ASM →
Quick Peek Rust (295 B)
pub fn log2_q5_u64(n: u64) -> i32 {
    let lz = n.leading_zeros() as i32;
    let int_bits = 63 - lz;
    let shift = 64 - lz - 1 - 5;
    let frac: i32 = if shift >= 0 {
        ((n >> shift) & 0x1F) as i32
    } else {
        ((n << (-shift)) & 0x1F) as i32
    };
    int_bits * 32 + frac
}
Page 1 of 1 (2 total capsules)