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
omega-mv / gpu / nvidia / om / disasm / words.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | note Source: word_half and omega_sm121_padding_start; C retains byte transport only. |
| 3 | fn dis_words b view uchar 8 mode ulong at ulong prev ulong to ulong |
| 4 | v = ulong 0 |
| 5 | for i ulong 8 |
| 6 | v = or v shl ulong get b i mul i 8 |
| 7 | end |
| 8 | if eq mode 0 |
| 9 | ret v |
| 10 | end |
| 11 | if eq and v 4095 2381 |
| 12 | ret add at 16 |
| 13 | end |
| 14 | ret prev |
| 15 | end |