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 / apirest / sstats.om

16 lines · 394 bytes Raw Blame History
1om2
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3fn arsstats q view ulong 8 st view ulong 7 y edit ulong 12 to ulong
4put y 0 or ulong uint get q 0 shl ulong uint get q 1 32
5put y 1 get q 2
6v = mul get q 1 get q 2
7s = mul div get q 1 128 div get q 2 128
8v = add v mul s 4
9put y 2 mul get q 0 v
10for i ulong 7
11put y add i 3 get st i
12end
13put y 10 get q 3
14put y 11 get q 4
15ret 0
16end