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 / apirest / acc.om

15 lines · 451 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Host verification reference: separate f64 accumulation and magnitude to fit six native slots.
3fn aracc w view uchar * sc view ushort * x view f32 * to ulong
4s = f64 0
5for i ulong 4294967296
6if ge i mul div len x 128 128
7break
8end
9p = f64 bitcast f32 refb uint get w i
10p = mul p f64 get x i
11p = mul p f64 bitcast f32 shl uint get sc div i 128 16
12s = add s p
13end
14ret bitcast ulong s
15end