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

12 lines · 165 bytes Raw Blame History
1fn clz_u32 x uint to uint
2if eq x 0
3ret 32
4end
5count = uint 0
6mask = uint 2147483648
7while eq (and x mask) 0
8count = add count 1
9mask = shr mask 1
10end
11ret count
12end