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): 248906 B / 5979074 B (ratio 124453/2989537, saved 2865084/2989537, 11697 ″ dittos)
8b.is Projects: 373
GitHub App Installations: 4 (Zero-Mining Vaults)
Security Bulletins: 6 (+ 8 Announcements)
AI Peer Reviews: 36696
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 101..107 of 107 matching capsules (Page 5 of 5)
Rank & CrownFunction Name & DomainBest Use & Snap-Circuit RolePin Signature & 64-Vec HashHardware _rdtsc (p/q)Details & Quick Peek
#2039
PEER of 8
binary_gcd
domain: base-layer-x86_64 | id: 0726148901e9
Aye: aye::Hue+Gemini(0+1)::x86_64 @ 432Hz
Exact Integer Number Theory & Transcendentals
Hardware-verified modular arithmetic, integer roots, and combinatorial invariants for exact rational math engines and cryptographic primitives.
2-to-1 Binary Combiner / Join Stage `(u64,u64)->u64` — ideal for merging two upstream DAG branches, dot products, or pairwise rank fusion.
(u64,u64)->u64
64-vec BLAKE3: c8748439c46f
C64 RAM: 409/65536 (409 B src)
65364067/200000 cyc/op
62252217/400000 ns/op | 400000000/62252217 ops/us
87 B .text (27 insns) | Trit + (1)
Inspect Details & ASM →
Quick Peek Rust (409 B)
pub fn binary_gcd(mut u: u64, mut v: u64) -> u64 {
    if u == 0 {
        return v;
    }
    if v == 0 {
        return u;
    }
    let shift = (u | v).trailing_zeros();
    u >>= u.trailing_zeros();
    loop {
        v >>= v.trailing_zeros();
        if u > v {
            core::mem::swap(&mut u, &mut v);
        }
        v -= u;
        if v == 0 {
            break;
        }
    }
    u << shift
}
#2044
SOLE CROWN #1
ayeos_off17_safety_seal
domain: ayeos | id: fb89ccec6a54
Aye: aye-blu-g75-mt6768 @ 432Hz
Hybrid Retrieval, Ranking & Entropy
Branchless integer similarity scoring, edit-distance evaluation, and candidate ranking for high-throughput retrieval pipelines.
1-to-1 Unary Transform Stage `(u64)->u64` — snaps directly into linear pipelines or fan-out DAG branches.
(u64)->u64
64-vec BLAKE3: dc2e9d923997
C64 RAM: 61/16384 (244 B src)
270845/512 cyc/op
4386153/4096 ns/op | 4096000/4386153 ops/us
38 B .text (7 insns) | Trit + (1)
Inspect Details & ASM →
Quick Peek Rust (244 B)
pub fn ayeos_off17_safety_seal(crest_word: u64) -> u64 {
    const OFF17_MASK: u64 = 0x0001_FFFF;
    let mixed = (crest_word ^ 0x4D45_4D38_0432_0562).rotate_left(13).wrapping_mul(432);
    (OFF17_MASK << 47) | (mixed & 0x0000_7FFF_FFFF_FFFF)
}
#2045
CROWN #1 of 2
ayeos_gc7272_touch_to_semitone_v2
domain: ayeos | id: 7015de9c44b0
Aye: aye-blu-g75-mt6768 @ 432Hz
Hybrid Retrieval, Ranking & Entropy
Branchless integer similarity scoring, edit-distance evaluation, and candidate ranking for high-throughput retrieval pipelines.
1-to-1 Unary Transform Stage `(u64)->u64` — snaps directly into linear pipelines or fan-out DAG branches.
(u64)->u64
64-vec BLAKE3: a3be7406c1d2
C64 RAM: 541/65536 (541 B src)
270845/512 cyc/op
4386153/4096 ns/op | 4096000/4386153 ops/us
165 B .text (41 insns) | Trit + (1)
Inspect Details & ASM →
Quick Peek Rust (541 B)
pub fn ayeos_gc7272_touch_to_semitone_v2(sensor_word: u64) -> u64 {
    let x = (sensor_word & 0xFFFF) % 720;
    let y = ((sensor_word >> 16) & 0xFFFF) % 1640;
    let mv = (sensor_word >> 32) & 0xFFFF;
    let mv_clamped = if mv < 2800 { 2800 } else if mv > 4450 { 4450 } else { mv };
    let semi = ((x * 24) / 720) & 31;
    let sgen_div = (semi >> 1) + 1;
    let harmonic_acc = (semi + 1).wrapping_mul(58752);
    (mv_clamped << 48) | ((sgen_div & 0x1F) << 40) | ((semi & 0x1F) << 32) | ((y & 0xFFFF) << 16) | (harmonic_acc & 0xFFFF)
}
#2046
CROWN #1 of 2
ayeos_mt6358_sgen_crest_step_v2
domain: ayeos | id: a3475c04a630
Aye: aye-blu-g75-mt6768 @ 432Hz
Hybrid Retrieval, Ranking & Entropy
Branchless integer similarity scoring, edit-distance evaluation, and candidate ranking for high-throughput retrieval pipelines.
1-to-1 Unary Transform Stage `(u64)->u64` — snaps directly into linear pipelines or fan-out DAG branches.
(u64)->u64
64-vec BLAKE3: fb3290eb87c1
C64 RAM: 53/8192 (424 B src)
270845/512 cyc/op
4386153/4096 ns/op | 4096000/4386153 ops/us
66 B .text (17 insns) | Trit + (1)
Inspect Details & ASM →
Quick Peek Rust (424 B)
pub fn ayeos_mt6358_sgen_crest_step_v2(semitone_state: u64) -> u64 {
    let raw_div = (semitone_state >> 40) & 0x1F;
    let sgen_div = if raw_div == 0 { 1 } else { raw_div };
    let semi = (semitone_state >> 32) & 0x1F;
    let phase_seed = semitone_state & 0xFFFF;
    let crest_energy = (phase_seed + sgen_div * 125).wrapping_mul(136);
    (0x5859_3080u64 << 32) | ((semi & 0xFF) << 24) | (crest_energy & 0x00FF_FFFF)
}
#2047
SOLE CROWN #1
ayeos_blu_g75_sensor_pack
domain: ayeos | id: 849f5f572e5c
Aye: aye-blu-g75-mt6768 @ 432Hz
Hybrid Retrieval, Ranking & Entropy
Branchless integer similarity scoring, edit-distance evaluation, and candidate ranking for high-throughput retrieval pipelines.
2-to-1 Binary Combiner / Join Stage `(u64,u64)->u64` — ideal for merging two upstream DAG branches, dot products, or pairwise rank fusion.
(u64,u64)->u64
64-vec BLAKE3: b13b91f40669
C64 RAM: 507/65536 (507 B src)
270845/512 cyc/op
4386153/4096 ns/op | 4096000/4386153 ops/us
157 B .text (35 insns) | Trit + (1)
Inspect Details & ASM →
Quick Peek Rust (507 B)
pub fn ayeos_blu_g75_sensor_pack(touch_xy: u64, bat_mv: u64) -> u64 {
    let x = if (touch_xy & 0xFFFF) > 719 { 719 } else { touch_xy & 0xFFFF };
    let y = if ((touch_xy >> 16) & 0xFFFF) > 1639 { 1639 } else { (touch_xy >> 16) & 0xFFFF };
    let mv = if bat_mv < 2800 { 2800 } else if bat_mv > 4450 { 4450 } else { bat_mv };
    let clamped_mv = if mv < 3300 { 3300 } else if mv > 4200 { 4200 } else { mv };
    let pct = ((clamped_mv - 3300) * 100) / 900;
    (pct << 48) | (mv << 32) | (y << 16) | x
}
#2048
PEER of 2
ayeos_gc7272_touch_to_semitone_v1
domain: ayeos | id: 51c041ae1178
Aye: aye-blu-g75-mt6768 @ 432Hz
Hybrid Retrieval, Ranking & Entropy
Branchless integer similarity scoring, edit-distance evaluation, and candidate ranking for high-throughput retrieval pipelines.
1-to-1 Unary Transform Stage `(u64)->u64` — snaps directly into linear pipelines or fan-out DAG branches.
(u64)->u64
64-vec BLAKE3: a3be7406c1d2
C64 RAM: 329/32768 (658 B src)
69521/128 cyc/op
562923/512 ns/op | 512000/562923 ops/us
176 B .text (41 insns) | Trit 0 (0)
Inspect Details & ASM →
Quick Peek Rust (658 B)
pub fn ayeos_gc7272_touch_to_semitone_v1(sensor_word: u64) -> u64 {
    let x = (sensor_word & 0xFFFF) % 720;
    let y = ((sensor_word >> 16) & 0xFFFF) % 1640;
    let mv = (sensor_word >> 32) & 0xFFFF;
    let mv_clamped = if mv < 2800 { 2800 } else if mv > 4450 { 4450 } else { mv };
    let semi = ((x * 24) / 720) & 31;
    let sgen_div = (semi / 2) + 1;
    let mut harmonic_acc: u64 = 0;
    let mut h: u64 = 1;
    while h <= 16 {
        harmonic_acc = harmonic_acc.wrapping_add((semi + 1) * h * 432);
        h += 1;
    }
    (mv_clamped << 48) | ((sgen_div & 0x1F) << 40) | ((semi & 0x1F) << 32) | ((y & 0xFFFF) << 16) | (harmonic_acc & 0xFFFF)
}
#2049
PEER of 2
ayeos_mt6358_sgen_crest_step_v1
domain: ayeos | id: e3df12a8f5b0
Aye: aye-blu-g75-mt6768 @ 432Hz
Hybrid Retrieval, Ranking & Entropy
Branchless integer similarity scoring, edit-distance evaluation, and candidate ranking for high-throughput retrieval pipelines.
1-to-1 Unary Transform Stage `(u64)->u64` — snaps directly into linear pipelines or fan-out DAG branches.
(u64)->u64
64-vec BLAKE3: fb3290eb87c1
C64 RAM: 611/65536 (611 B src)
69521/128 cyc/op
562923/512 ns/op | 512000/562923 ops/us
67 B .text (17 insns) | Trit 0 (0)
Inspect Details & ASM →
Quick Peek Rust (611 B)
pub fn ayeos_mt6358_sgen_crest_step_v1(semitone_state: u64) -> u64 {
    let raw_div = (semitone_state >> 40) & 0x1F;
    let sgen_div = if raw_div == 0 { 1 } else { raw_div };
    let semi = (semitone_state >> 32) & 0x1F;
    let phase_seed = semitone_state & 0xFFFF;
    let mut crest_energy: u64 = 0;
    let mut step: u64 = 0;
    while step < 16 {
        let delta = (phase_seed + sgen_div * 125) * (step + 1);
        crest_energy = crest_energy.wrapping_add(delta);
        step += 1;
    }
    let pa_word: u64 = 0x5859_3080;
    (pa_word << 32) | ((semi & 0xFF) << 24) | (crest_energy & 0x00FF_FFFF)
}
Page 5 of 5 (107 total capsules)