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 / task07 / reference.om

9 lines · 114 bytes Raw Blame History
1fn bitrev_u16 x uint to uint
2r = uint 0
3v = x
4for i ulong 16
5r = or (shl r 1) (and v 1)
6v = shr v 1
7end
8ret r
9end