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 / core / fmtclip.om

11 lines · 205 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2fn omclip cap ulong used ulong n ulong to ulong
3if ge add used 1 cap
4ret 0
5end
6space = sub sub cap used 1
7if gt n space
8ret space
9end
10ret n
11end