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

11 lines · 303 bytes Raw Blame History
1note dq8r: one q8_0 block (34 bytes) dequantised to 32 f32: y = f32(q) * d, as ggml-cpu dequantize_row_q8_0.
2fn dq8r w view uchar 34 y edit f32 32 to void
3d = h2f ushort or ulong get w 0 shl ulong get w 1 8
4for j ulong 32
5q = long get w add 2 j
6if ge q 128
7q = sub q 256
8end
9put y j mul f32 q d
10end
11end