{"capsule":{"id":"1aa4c4c12cfebbe7c06ea1a6db532a64","name":"ospop_pack5","domain":"ternary","source_code":"pub fn ospop_pack5(word: u64) -> u64 {\n    const POW3: [u64; 5] = [1, 3, 9, 27, 81];\n    let mut byte: u64 = 0;\n    let mut lane = 0usize;\n    while lane < 5 {\n        // Two's-complement ternary: 0 -> 0, 1 -> 1, -1 -> 255 (0xFF)\n        let tu = ((word >> (lane * 8)) as u8) as i64;\n        let trit = if tu > 1 { 1 } else if tu == 255 || tu == 0xFF { -1 } else { tu as i8 };\n        let digit = (trit + 1) as u64;\n        byte += digit * POW3[lane];\n        lane += 1;\n    }\n    byte\n}","inputs":[{"name":"word","pin_type":"u64","direction":"input"}],"output":{"name":"out","pin_type":"u64","direction":"output"},"signature_key":"(u64)->u64","c64_report":{"code_bytes":487,"ram_budget_ratio":{"num":487,"den":65536},"fits_fast_page":true,"ast_node_count":68,"zero_unsafe":true,"zero_external_crates":true,"zero_floats":true},"marine_salience":{"peak_count":22,"period_jitter":{"num":3,"den":80},"amplitude_jitter":{"num":2797,"den":12285},"combined_jitter":{"num":52123,"den":393120},"salience_score":{"num":1704985,"den":19656},"salience_trit":"Pos","wave_signature":{"frequencies_hz":[475,864,1425,2073,4536,2592,3628,5184],"phases_mrad":[1290,0,167,1006,1096,0,6166,4115],"amplitudes":[86,8,64,55,51,8,38,30],"interference_hash":[24,245,238,182,196,63,81,221,252,134,63,179,28,218,46,176,116,20,120,191,86,107,222,179,111,69,214,137,72,41,94,60]}},"author_aye":"aye::Hue+Gemini(0+1)::aarch64","author_resonance_hz":432,"published_epoch_ns":1794948843375236001,"compiled_text_bytes":165,"asm_instruction_count":45,"asm_preview":"ospop_pack5:\n    lea    eax, [rdi + 1]\n    and    eax, 3\n    test    dil, -2\n    mov    ecx, 2\n    cmove    rcx, rax\n    mov    eax, edi\n    shr    eax, 8\n    inc    eax\n    and    eax, 3\n    test    edi, 65024\n    lea    rax, [rax + 2*rax]\n    mov    edx, 6\n    cmove    rdx, rax\n    add    rdx, rcx\n    mov    eax, edi\n    shr    eax, 16\n    inc    eax\n    and    eax, 3\n    test    edi, 16646144\n    lea    rax, [rax + 8*rax]\n    mov    ecx, 18\n    cmove    rcx, rax\n    add    rcx, rdx\n    mov    eax, edi\n    shr    eax, 24\n    inc    eax\n    and    eax, 3\n    test    edi, -33554432\n    lea    rax, [rax + 8*rax]\n    lea    rax, [rax + 2*rax]\n    mov    edx, 54\n    cmove    rdx, rax\n    mov    rax, rdi\n    shr    rax, 32\n    inc    eax\n    and    eax, 3\n    movabs    rsi, 1090921693184\n    test    rdi, rsi\n    lea    rax, [rax + 8*rax]\n    lea    rsi, [rax + 8*rax]\n    mov    eax, 162\n    cmove    rax, rsi\n    add    rax, rdx\n    add    rax, rcx\n    ret","output_digest_blake3":"bf3021ead01031f6dbdc1d8d57e63071"},"efficiency":{"capsule_id":"1aa4c4c12cfebbe7c06ea1a6db532a64","vote_count":1,"total_historical_votes":1,"net_trit_score":1,"net_trit_balanced":"+","consensus_trit":"Pos","speed_ops_per_us":{"num":200000000,"den":752833},"ns_per_op":{"num":752833,"den":200000},"cycles_per_op":{"num":1,"den":1},"c64_memory_ratio":{"num":165,"den":65536},"timing_salience":{"num":5878644423746744698,"den":59243529694779691},"efficiency_index":{"num":821237138995911651,"den":2076871888279450}},"ns_per_op_pq":"752833/200000","speed_ops_per_us_pq":"200000000/752833","cycles_per_op_pq":"1/1","marine_salience_pq":"1704985/19656","vote_trits":"+","equivalence_class":"(u64)->u64::bf3021ead010"}