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 / om / graph / address.om

14 lines · 409 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note q0: align256, split VA, strided byte offset. Unsigned address arithmetic matches the legacy ABI.
3fn mg_addr q view ulong 8 to ulong
4if eq get q 0 0
5ret and add get q 1 255 18446744073709551360
6end
7if eq get q 0 1
8if lt get q 4 get q 3
9ret add get q 1 get q 4
10end
11ret add get q 2 sub get q 4 get q 3
12end
13ret add get q 1 mul get q 5 get q 6
14end