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 / native / nvrm / heap_wire.om

18 lines · 379 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note NVOS32_PARAMETERS heap information, vendored nvos.h; sizeof184, data.Info.attr40.
3fn nvrm_heap_wire a view ulong 16 b edit uchar 184 to ulong
4for i ulong 184
5put b i 0
6end
7for i ulong 4
8v = get a i
9off = mul i 4
10if eq i 3
11off = 40
12end
13for j ulong 4
14put b add off j uchar and shr v mul j 8 255
15end
16end
17ret 184
18end