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 / nmm-next.om

11 lines · 335 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note gpu/nvidia/checks/nmm-next.om: stand-in for gpu/nvidia/om/api/mm_next.om in the check nmm; see nmm-init.om.
3fn mm_next q edit ulong 8 to bool
4put q 1 add get q 1 1
5if eq get q 1 get q 3
6put q 1 0
7put q 0 add get q 0 1
8end
9put q 5 add mul get q 0 get q 3 get q 1
10ret lt get q 0 get q 4
11end