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 / bench / inference_cost / tasks / task20 / reference.om

9 lines · 123 bytes Raw Blame History
1fn rot_left_u32 x uint k uint to uint
2s = rem k 32
3if eq s 0
4ret x
5end
6hi = shl x s
7lo = shr x (sub 32 s)
8ret or hi lo
9end