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 / task13 / reference.py

8 lines · 124 bytes Raw Blame History
1def ctz_u32(x):
2 if x == 0:
3 return 32
4 c = 0
5 while not x & 1:
6 c += 1
7 x >>= 1
8 return c