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 / native / nvrm / alloc_scalar.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | note mode 0: slot counter successor (zero refuses overflow); mode 1: existing method encoding. |
| 3 | fn nvrm_alloc_scalar mode ulong a ulong b ulong c ulong to ulong |
| 4 | if eq mode 1 |
| 5 | ret nvrm_mthd a b c |
| 6 | end |
| 7 | if gt a 18446744069414584319 |
| 8 | ret 0 |
| 9 | end |
| 10 | ret add a 4294967296 |
| 11 | end |