interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / gpu / nvidia / om / apiviews / widen.om

13 lines · 288 bytes Raw Blame History
1om2
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3note bf16 to f32, exact widen (shift left 16), over the live view.
4fn av_widen x view ushort * y edit f32 * to ulong
5if ne len x len y
6ret 1
7end
8for i ulong len x
9u = uint get x i
10put y i bitcast f32 shl u 16
11end
12ret 0
13end