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-tcinfo.om

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