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.py
| 1 | def 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 |