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 / learn53 / wire.om

42 lines · 611 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Public data-only frame decoder. Not a sandbox or task-custody service.
3global packet uchar 5137
4fn kp p ulong to ulong
5v = ulong 0
6for j ulong 4
7v = or v shl ulong get packet add p j mul j 8
8end
9ret v
10end
11fn kframe n ulong to int
12if lt n 8
13ret 65
14end
15if gt n 5136
16ret 65
17end
18t = kp 0
19if lt t 96
20ret 65
21end
22if gt t 4096
23ret 65
24end
25if gt t sub n 8
26ret 65
27end
28c = kp add t 4
29if gt c 1032
30ret 65
31end
32if ne n add add t c 8
33ret 65
34end
35for i ulong t
36put kt i get packet add i 4
37end
38for i ulong c
39put ko i get packet add add t 8 i
40end
41ret keval t c
42end