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

17 lines · 279 bytes Raw Blame History
1om2
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3fn pfreg w uint d uint to ulong
4if gt mul mul ulong 32 ulong w ulong d 65536
5ret 1
6end
7ret 0
8end
9fn pfcount x view f32 * to ulong
10n = ulong 0
11for i ulong len x
12if eq get x i -999.0f32
13n = add n 1
14end
15end
16ret n
17end