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

74 lines · 1402 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Selected native expert window. cfg tokens,rows,H,EI,mutant,scale. VAs xp,gu,act,actp,dn,xmap,ymap,sgu,sdn,xout,ptH,ptEI. Window offsets follow moe_windows.
3fn mg_win c view ulong 16 v view ulong 16 w view ulong 8 d edit ulong 64 p ulong to ulong
4a = new ulong 16 0
5for i ulong 64
6put d i 0
7end
8if ge p 6
9put d 0 255
10ret 1
11end
12put d 2 1
13put d 3 1
14put d 4 get c 1
15if eq p 0
16put d 0 46
17put d 5 15
18ret 1
19end
20if or eq p 2 eq p 5
21put d 0 35
22put d 7 get c 1
23put d 8 get c 1
24put d 10 get v 7
25put d 11 add get v 0 get w 3
26put d 12 add get v 1 get w 4
27put d 13 get v 5
28put d 14 get v 6
29if eq p 5
30put d 0 38
31put d 15 1
32put d 10 get v 8
33put d 11 add get v 3 get w 5
34put d 12 add get v 4 get w 6
35put d 13 get v 6
36end
37ret 1
38end
39if eq p 3
40put d 0 36
41put d 1 3
42put d 5 5
43if eq get c 4 1
44put d 1 20
45end
46put d 2 div get c 3 256
47put d 3 get c 1
48put d 4 mul get c 1 get c 3
49put a 0 add get v 1 get w 4
50put a 1 add get v 2 get w 5
51put a 2 get c 5
52ret gr_pack a d 2
53end
54put d 0 34
55put d 1 11
56put d 2 div add get c 2 255 256
57put d 3 get c 0
58put d 4 mul get c 0 get c 2
59put a 0 add get v 9 get w 7
60put d 5 6
61put a 1 get v 10
62put a 2 add get v 0 get w 3
63if eq p 4
64put d 0 37
65put d 1 12
66put d 2 div add get c 3 255 256
67put d 3 get c 1
68put d 4 mul get c 1 get c 3
69put a 0 add get v 2 get w 5
70put a 1 get v 11
71put a 2 add get v 3 get w 5
72end
73ret gr_pack a d 4
74end