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 / components / fixture.om

102 lines · 1656 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Host fixture ONLY: digest sentinels are synthetic, never an admission receipt.
3fn compose_setid b edit uchar 4096 slot ulong h view uchar 32 to void
4if lt slot 8
5for j ulong 32
6put b add add 512 mul slot 32 j get h j
7end
8end
9end
10fn compose_fixture b edit uchar 4096 l edit ulong 32 to uint
11d = new ulong 48 0
12q = new uchar 384 0
13for j ulong 4096
14put b j 0
15end
16for j ulong 32
17put l j 0
18end
19put d 0 1
20put d 1 2
21put d 2 8
22put d 4 1
23put d 5 128
24put d 6 128
25put d 11 1
26put d 13 1
27put d 14 8
28put d 15 1
29put d 17 128
30put d 18 256
31put d 19 2
32put d 24 3
33put d 25 256
34put d 26 4
35put d 27 1
36put d 30 32768
37put d 31 4
38put d 33 256
39put d 34 8
40put d 35 4
41put d 36 32768
42put d 37 8
43put d 40 1
44put d 41 256
45rc = quant_write d q
46if ne rc 0
47ret rc
48end
49for j ulong 384
50put b add j 768 get q j
51end
52compose_put b 0 1
53compose_put b 1 1152
54compose_put b 2 121
55compose_put b 4 1
56compose_put b 5 128
57compose_put b 6 256
58compose_put b 7 1
59compose_put b 8 3
60compose_put b 9 1
61compose_put b 10 1
62compose_put b 11 1
63compose_put b 14 1
64compose_put b 15 1
65compose_put b 16 256
66compose_put b 17 8
67compose_put b 18 1
68compose_put b 19 1
69compose_put b 20 7
70compose_put b 22 64
71compose_put b 23 6
72compose_put b 24 1
73compose_put b 25 256
74compose_put b 26 1
75compose_put b 27 1
76compose_put b 28 1
77compose_put b 29 7
78for k ulong 8
79if ne k 2
80compose_put b add k 30 add k 1
81end
82put b add 512 mul k 32 uchar add k 1
83end
84put l 0 1
85put l 1 1
86put l 2 1
87put l 3 1
88put l 4 256
89put l 5 1
90put l 6 1
91put l 8 64
92put l 9 6
93put l 10 1
94put l 11 896
95put l 12 10
96put l 13 1
97put l 14 1
98put l 15 1
99put l 19 2
100put l 23 3
101ret compose_check b 1152
102end