interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / gpu / nvidia / checks / arest-ginfo.om

19 lines · 488 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note gpu/nvidia/checks/arest-ginfo.om: arginfo (gpu/nvidia/om/apirest/ginfo.om); Q is its 16 q words, the output its 22 words. Composed before arest.om.
3text t_name "AREST-GINFO"
4text t_au "ginfo"
5fn arop q view ulong 64 nq ulong ny ulong o edit ulong 128 to ulong
6if or ne nq 16 ne ny 22
7ckbad
8end
9a = new ulong 16 0
10for i ulong 16
11put a i get q i
12end
13y = new uint 22 0x5a5a5a5a
14r = arginfo a y
15for i ulong 22
16put o i ulong get y i
17end
18ret r
19end