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/checks/arest-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 / checks / arest-mrow.om` 32 lines ยท 815 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 2 note gpu/nvidia/checks/arest-mrow.om: mrow (gpu/nvidia/om/codegen/cg_mrow.om), as packing() of CUDApp 3 note tests/api_rest_diff.c calls it. Q m, n, np; s[i] = (float)i; output 0 the digest of the m * n copied bit 4 note patterns. Composed before arestg.om. 5 text t_name "AREST-MROW" 6 text t_mrow "mrow" 7 fn arop q view ulong 256 nq ulong ny ulong o edit ulong 256 to ulong 8 if or ne nq 3 not ckis 0 t_mrow 9 ckbad 10 end 11 sn = mul get q 0 get q 2 12 dn = mul get q 0 get q 1 13 if or gt sn 408 gt dn 289 14 ckbad 15 end 16 a = new ulong 3 0 17 for i ulong 3 18 put a i get q i 19 end 20 s = new f32 408 0.0f32 21 for i ulong 408 22 put s i f32 i 23 end 24 d = new f32 289 -1.0f32 25 r = mrow a part s 0 sn part d 0 dn 26 h = ardg0 27 for i ulong dn bound 289 28 h = ardg h ulong bitcast uint get d i 29 end 30 put o 0 h 31 ret bitcast ulong r 32 end