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 / core / vecspec.om

24 lines · 414 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Copyright 2026 Drake Stapleton
3fn omvspec p edit uchar 144 name view uchar 64 n ulong to long
4if eq n 0
5ret -1
6end
7for i ulong 144
8put p i uchar 0
9end
10for i ulong 63
11c = get name i
12if eq c 0
13break
14end
15put p add i 32 c
16end
17put p 96 uchar 3
18put p 100 uchar 32
19for i ulong 4
20put p add 104 i uchar and shr n mul i 8 255
21end
22put p 108 uchar 1
23ret 0
24end