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-gath32.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-gath32.om` 39 lines ยท 1029 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 2 note gpu/nvidia/checks/arest-gath32.om: argath32 (gpu/nvidia/om/apirest/gath32.om), as data_parts() of CUDApp 3 note tests/api_rest_partitions.h calls it. Q n; rows[i] = 33 - i, x the test's 170 words of 34 rows of 5; output 0 4 note the digest of the n * 5 gathered words. Composed before arestg.om. 5 text t_name "AREST-GATH32" 6 text t_gath "gath32" 7 fn ax_c rows view uint 34 x view uint 170 y edit uint 170 n ulong to ulong 8 ret argath32 part rows 0 n part x 0 170 part y 0 mul n 5 9 end 10 fn ax_g n ulong o edit ulong 256 to ulong 11 rows = new uint 34 0 12 for i ulong n bound 34 13 put rows i uint sub 33 i 14 end 15 x = new uint 170 0 16 for i ulong 170 17 if eq rem i 2 1 18 put x i `4294967295` 19 else 20 put x i uint i 21 end 22 end 23 y = new uint 170 0x5a5a5a5a 24 r = ax_c rows x y n 25 m = mul n 5 26 h = ardg0 27 for i ulong m bound 170 28 h = ardg h ulong get y i 29 end 30 put o 0 h 31 ret r 32 end 33 fn arop q view ulong 256 nq ulong ny ulong o edit ulong 256 to ulong 34 n = get q 0 35 if or or ne nq 1 gt n 34 not ckis 0 t_gath 36 ckbad 37 end 38 ret ax_g n o 39 end