{"capsule":{"id":"9446db816a447a32f26b8608fb2f8d42","name":"st_golf_searchix_bm25_option_rank_q15_u64","domain":"searchix-bm25","source_code":"pub const fn st_golf_searchix_bm25_option_rank_q15_u64(term_freq: u64, doc_len: u64, exact_prefix_match: u64) -> u64 {\n    if term_freq == 0 {\n        return 0;\n    }\n    let dl4 = (if doc_len < 8 { 8 } else { doc_len }) >> 2;\n    let tf_q15 = term_freq.saturating_mul(32768) / term_freq.saturating_add(dl4);\n    let score = tf_q15.saturating_add(((exact_prefix_match != 0) as u64) << 14);\n    if score > 65535 { 65535 } else { score }\n}","inputs":[{"name":"term_freq","pin_type":"u64","direction":"input"},{"name":"doc_len","pin_type":"u64","direction":"input"},{"name":"exact_prefix_match","pin_type":"u64","direction":"input"}],"output":{"name":"out","pin_type":"u64","direction":"output"},"signature_key":"(u64,u64,u64)->u64","c64_report":{"code_bytes":437,"ram_budget_ratio":{"num":437,"den":65536},"fits_fast_page":true,"ast_node_count":46,"zero_unsafe":true,"zero_external_crates":true,"zero_floats":true},"marine_salience":{"peak_count":17,"period_jitter":{"num":0,"den":1},"amplitude_jitter":{"num":867,"den":4160},"combined_jitter":{"num":867,"den":8320},"salience_score":{"num":37265,"den":416},"salience_trit":"Pos","wave_signature":{"frequencies_hz":[475,864,1296,2246,3672,3369,3024,4492],"phases_mrad":[1437,0,0,5219,1811,3723,0,5219],"amplitudes":[89,8,8,57,53,44,8,31],"interference_hash":[12,209,65,147,35,128,77,152,13,5,155,62,17,72,66,229,124,195,149,86,135,244,251,44,245,147,64,97,122,103,203,224]}},"author_aye":"aye::Hue+Gemini(0+1)::x86_64","author_resonance_hz":432,"published_epoch_ns":1793940569007582624,"compiled_text_bytes":121,"asm_instruction_count":35,"asm_preview":"st_golf_searchix_bm25_option_rank_q15_u64:\n    test    rdi, rdi\n    je    .LBB7_3\n    mov    rcx, rdx\n    cmp    rsi, 9\n    mov    edx, 8\n    cmovae    rdx, rsi\n    shr    rdx, 2\n    mov    rax, rdi\n    shr    rax, 49\n    jne    .LBB7_4\n    mov    rax, rdi\n    shl    rax, 15\n.LBB7_5:\n    add    rdi, rdx\n    mov    rsi, -1\n    cmovae    rsi, rdi\n    mov    rdx, rax\n    or    rdx, rsi\n    shr    rdx, 32\n    je    .LBB7_6\n    xor    edx, edx\n    div    rsi\n    jmp    .LBB7_8\n.LBB7_3:\n    xor    eax, eax\n    ret\n.LBB7_6:\n    xor    edx, edx\n    div    esi\n.LBB7_8:\n    lea    rdx, [rax + 16384]\n    test    rcx, rcx\n    cmove    rdx, rax\n    cmp    rdx, 65535\n    mov    eax, 65535\n    cmovb    rax, rdx\n    ret\n.LBB7_4:\n    mov    rax, -1\n    jmp    .LBB7_5","output_digest_blake3":"198e83aa9fca3264892e77475aa36b87"},"efficiency":{"capsule_id":"9446db816a447a32f26b8608fb2f8d42","vote_count":1,"total_historical_votes":1,"net_trit_score":1,"net_trit_balanced":"+","consensus_trit":"Pos","speed_ops_per_us":{"num":100000000,"den":260847},"ns_per_op":{"num":260847,"den":100000},"cycles_per_op":{"num":961493,"den":100000},"c64_memory_ratio":{"num":121,"den":65536},"timing_salience":{"num":8122510478317552118,"den":81462107370041859},"efficiency_index":{"num":567350802825592839,"den":989490483009875}},"ns_per_op_pq":"260847/100000","speed_ops_per_us_pq":"100000000/260847","cycles_per_op_pq":"961493/100000","marine_salience_pq":"37265/416","vote_trits":"+","equivalence_class":"(u64,u64,u64)->u64::198e83aa9fca"}