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
omega-mv / gpu / nvidia / checks / arest-tcinfo.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note 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. |
| 3 | text t_name "AREST-TCINFO" |
| 4 | text t_au "tcinfo" |
| 5 | fn arop q view ulong 64 nq ulong ny ulong o edit ulong 128 to ulong |
| 6 | if or ne nq 16 ne ny 24 |
| 7 | ckbad |
| 8 | end |
| 9 | a = new ulong 16 0 |
| 10 | for i ulong 16 |
| 11 | put a i get q i |
| 12 | end |
| 13 | y = new uint 24 0x5a5a5a5a |
| 14 | r = artcinfo a y |
| 15 | for i ulong 24 |
| 16 | put o i ulong get y i |
| 17 | end |
| 18 | ret r |
| 19 | end |