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.c

6 lines · 134 bytes Raw Blame History
1uint32_t ctz_u32(uint32_t x) {
2 if (x == 0) return 32;
3 uint32_t c = 0;
4 while (!(x & 1u)) { c++; x >>= 1; }
5 return c;
6}