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 / bridge / ggml / kernels / df32.om

11 lines · 319 bytes Raw Blame History
1note df32_@T@: acc (f64 bits) + sum of f64(w*x) over @T@ lanes; fin 1 returns the f32 bits of the total.
2fn df32_@T@ acc ulong w view f32 @T@ x view f32 @T@ fin ulong to ulong
3s = bitcast f64 acc
4for i ulong @T@
5s = add s f64 mul get w i get x i
6end
7if eq fin 1
8ret ulong bitcast uint f32 s
9end
10ret bitcast ulong s
11end