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 / task06 / reference.c

6 lines · 158 bytes Raw Blame History
1uint32_t collatz_steps_u32(uint32_t n) {
2 uint64_t c = n;
3 uint32_t s = 0;
4 while (c > 1) { c = (c & 1u) ? 3 * c + 1 : c / 2; s++; }
5 return s;
6}