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/codegen/cg_mrow.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 / codegen / cg_mrow.om` 30 lines ยท 640 bytes Raw Blame History 1 om2 2 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 3 note q={m,n,np}; preserve forward row order. The portable ABI refuses overlapping source/destination views. 4 fn mr_row q view ulong 3 s view f32 * d edit f32 * r ulong to void 5 for c ulong get q 1 6 si = add mul r get q 2 c 7 di = add mul r get q 1 c 8 put d di get s si 9 end 10 end 11 fn mrow q view ulong 3 s view f32 * d edit f32 * to long 12 if gt get q 1 get q 2 13 ret long -1 14 end 15 for i ulong 3 16 if gt get q i `4294967295` 17 ret long -1 18 end 19 end 20 if lt len s mul get q 0 get q 2 21 ret long -1 22 end 23 if lt len d mul get q 0 get q 1 24 ret long -1 25 end 26 for r ulong get q 0 27 mr_row q s d r 28 end 29 ret long 0 30 end