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 / fmt.om

51 lines · 604 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Copyright 2026 Drake Stapleton
3fn omfmt p view uchar 4 o edit ulong 4 to void
4put o 0 1
5put o 1 6
6put o 2 0
7put o 3 0
8if ne get p 0 37
9ret
10end
11i = ulong 1
12size = ulong 0
13if eq get p i 122
14size = 3
15i = add i 1
16else
17if eq get p i 108
18size = 1
19i = add i 1
20if eq get p i 108
21size = 2
22i = add i 1
23end
24end
25end
26c = ulong get p i
27if ne c 0
28put o 0 add i 1
29else
30put o 0 i
31end
32put o 2 size
33if eq c 37
34put o 1 0
35end
36if eq c 115
37put o 1 1
38end
39if eq c 99
40put o 1 2
41end
42if eq c 100
43put o 1 3
44end
45if eq c 117
46put o 1 4
47end
48if eq c 120
49put o 1 5
50end
51end