interplane.Get Omega
Read in your language

omega-bridge

Omega-first language interoperability: checked conversion backends and native language bindings

Brought by drakestapleton

branch main Branches Tags History

omega-bridge / tests / native / halve.om

7 lines · 231 bytes Raw Blame History
1note halve: h[i] = binary16 bits of half the f16 value h[i] (exponent minus 1; normal inputs above 2^-13),
2note an edit ushort array written in place.
3fn halve h edit ushort 3 to void
4for i ulong 3
5put h i sub get h i 1024
6end
7end