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 / task03 / reference.py
| 1 | def popcount_u32(x): |
| 2 | c = 0 |
| 3 | while x: |
| 4 | c += x & 1 |
| 5 | x >>= 1 |
| 6 | return c |