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

5 lines · 131 bytes Raw Blame History
1uint32_t clz_u32(uint32_t x) {
2 uint32_t c = 0;
3 for (uint32_t m = 0x80000000u; m && !(x & m); m >>= 1) c++;
4 return c;
5}