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-gseg.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-gseg.om` 24 lines ยท 663 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 2 note gpu/nvidia/checks/arest-gseg.om: argseg (gpu/nvidia/om/apirest/gseg.om), as misc_parts() of CUDApp 3 note tests/api_rest_partitions.h calls it. Q its 16 q words, NY the output length; q after the call is output 128 4 note on. Composed before arestg.om. 5 text t_name "AREST-GSEG" 6 text t_gseg "gseg" 7 fn arop q view ulong 256 nq ulong ny ulong o edit ulong 256 to ulong 8 if or or ne nq 16 gt ny 8 not ckis 0 t_gseg 9 ckbad 10 end 11 a = new ulong 16 0 12 for i ulong 16 13 put a i get q i 14 end 15 y = new ulong 8 0x5a5a5a5a5a5a5a5a 16 r = argseg a part y 0 ny 17 for i ulong 8 18 put o i get y i 19 end 20 for i ulong 16 21 put o add 128 i get a i 22 end 23 ret r 24 end