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 / sexp.om

11 lines · 304 bytes Raw Blame History
1note sexp_@T@: w[i] = f32 exp(w[i] - max) in place; returns acc (f64 bits) + the sum of the new w[i].
2fn sexp_@T@ acc ulong w edit f32 @T@ mx ulong to ulong
3s = bitcast f64 acc
4mf = bitcast f32 uint mx
5for i ulong @T@
6v = f32 ex64 f64 sub get w i mf
7put w i v
8s = add s f64 v
9end
10ret bitcast ulong s
11end