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 / moe / moe_ids32.om

16 lines · 427 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Existing router u32 little-endian picks to ABI1 logical ulong words.
3note n counts active entries, not tokens; no masking or expert validation here.
4fn moe_ids32 src view uchar 4096 n ulong ids edit ulong 1024 to ulong
5if gt n 1024
6ret 1
7end
8for i ulong n
9v = ulong 0
10for b ulong 4
11v = or v shl ulong get src add mul i 4 b mul b 8
12end
13put ids i v
14end
15ret 0
16end