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

11 lines · 245 bytes Raw Blame History
1note vmax_@T@: running maximum (f32 bits) over @T@ lanes, as ggml_vec_max_f32 (MAX(max, x)).
2fn vmax_@T@ acc ulong x view f32 @T@ to ulong
3m = bitcast f32 uint acc
4for i ulong @T@
5v = get x i
6if gt v m
7m = v
8end
9end
10ret ulong bitcast uint m
11end