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

22 lines · 528 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note gpu/nvidia/checks/arest-tspec.om: artspec (gpu/nvidia/om/apirest/tspec.om); Q is its 8 uint q words, the output its 10 words. Composed before arest.om.
3text t_name "AREST-TSPEC"
4text t_au "tspec"
5fn arop q view ulong 64 nq ulong ny ulong o edit ulong 128 to ulong
6if or ne nq 8 ne ny 10
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 10 0x5a5a5a5a
17r = artspec a y
18for i ulong 10
19put o i ulong get y i
20end
21ret r
22end