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/om/core/effect.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 / om / core / effect.om` 65 lines ยท 920 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note Copyright 2026 Drake Stapleton 3 fn efsize off ulong to ulong 4 if eq off 0 5 ret 2 6 end 7 if eq off 2 8 ret 2 9 end 10 if eq off 4 11 ret 4 12 end 13 if eq off 8 14 ret 8 15 end 16 if eq off 48 17 ret 2 18 end 19 ret 1 20 end 21 fn omeffect p edit uchar 184 w edit uchar 178 size ulong mode ulong to long 22 if eq mode 0 23 i = ulong 0 24 while lt i 178 bound 178 25 n = efsize i 26 for j ulong n 27 put w add i j uchar ulong get p add i sub sub n j 1 28 end 29 i = add i n 30 end 31 ret 0 32 end 33 for i ulong 184 34 put p i uchar 0 35 end 36 if eq size 176 37 ret -3 38 end 39 if ne size 178 40 ret -2 41 end 42 if eq or ulong get w 0 ulong get w 1 0 43 ret -4 44 end 45 n = add shl ulong get w 48 8 ulong get w 49 46 if gt n 128 47 ret -5 48 end 49 i = n 50 while lt i 128 bound 128 51 if ne ulong get w add 50 i 0 52 ret -6 53 end 54 i = add i 1 55 end 56 i = ulong 0 57 while lt i 178 bound 178 58 n = efsize i 59 for j ulong n 60 put p add i j uchar ulong get w add i sub sub n j 1 61 end 62 i = add i n 63 end 64 ret 0 65 end