Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/gpu/nvidia/moe-wide/moe_maps32_wide.om # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / gpu / nvidia / moe-wide / moe_maps32_wide.om` 29 lines ยท 745 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note moe_maps32 at wide capacity: logical ulong maps (X at 0, Y at 1416) to u32 maps. 3 note Output bytes X at 0, Y at 1416*4. Unused output bytes untouched. 4 note Validate every active value before writing; caller retains map capacity/generation lease. 5 fn mw_m32 out edit uchar 11328 p ulong v ulong to void 6 for b ulong 4 7 put out add mul p 4 b uchar and shr v mul b 8 255 8 end 9 end 10 fn moe_maps32_wide m view ulong 8 mp view ulong 2832 out edit uchar 11328 to ulong 11 if gt get m 0 1408 12 ret 1 13 end 14 n = add get m 0 8 15 for z ulong 2 16 for i ulong n 17 if gt get mp add mul z 1416 i `4294967295` 18 ret 2 19 end 20 end 21 end 22 for z ulong 2 23 for i ulong n 24 p = add mul z 1416 i 25 mw_m32 out p get mp p 26 end 27 end 28 ret 0 29 end