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

17 lines · 325 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2fn arsegok n uint cnt uint e view uint 4 sc view f32 4 to ulong
3if ne segend 0 cnt 1 1 0 0
4ret 0
5end
6prev = uint 0
7for i ulong ulong cnt
8if eq finite bitcast uint get sc i 0
9ret 0
10end
11if ne segend uint i cnt n get e i prev 0
12ret 0
13end
14prev = get e i
15end
16ret 1
17end