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

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