omega-bridge
Omega-first language interoperability: checked conversion backends and native language bindings
Brought by drakestapleton
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 |