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-mv/blob/main/gpu/nvidia/om/api/attn_rfit.om # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / gpu / nvidia / om / api / attn_rfit.om` 34 lines ยท 617 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 fn vc_rfit ids view uint * q view ulong 16 zz view ulong 4 to ulong 3 p = new ulong 16 0 4 for jj ulong get zz 1 5 i = add get zz 0 jj 6 v = ulong get ids i 7 put p 0 get q 0 8 put p 1 v 9 put p 2 get q 1 10 rc = api_at_plan 24 p 11 if or ne rc 0 eq get p 8 0 12 ret 0 13 end 14 end 15 ret 1 16 end 17 fn av_rfit ids view uint * q view ulong 16 n ulong to ulong 18 zz = new ulong 4 0 19 put zz 2 n 20 r = ulong 1 21 for bb ulong add div n `1000000` 1 22 put zz 0 mul bb `1000000` 23 cnt = sub n get zz 0 24 if gt cnt `1000000` 25 cnt = ulong `1000000` 26 end 27 put zz 1 cnt 28 rr = vc_rfit ids q zz 29 if eq rr 0 30 ret 0 31 end 32 end 33 ret r 34 end