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 / bridge / omega-bridge / tests / native / halve.om
| 1 | note halve: h[i] = binary16 bits of half the f16 value h[i] (exponent minus 1; normal inputs above 2^-13), |
| 2 | note an edit ushort array written in place. |
| 3 | fn halve h edit ushort 3 to void |
| 4 | for i ulong 3 |
| 5 | put h i sub get h i 1024 |
| 6 | end |
| 7 | end |