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
omega-mv / bench / inference_cost / tasks / task13 / reference.c
| 1 | uint32_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 | } |