Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-bridge/blob/main/evidence/deepinfer/cxx/capped_prefix.hdr-cpp # omega-bridge Omega-first language interoperability: checked conversion backends and native language bindings Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-bridge / evidence / deepinfer / cxx / capped_prefix.hdr-cpp` 5 lines ยท 224 bytes Raw Blame History 1 #include 2 static std::int64_t capped_prefix(std::int64_t n, std::int64_t ratio, std::int64_t cap) { 3 const std::int64_t stop = std::min(n, ratio * cap); 4 return floor_prefix(stop, ratio) + (n - stop) * cap; 5 }