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 / task11 / reference.py
| 1 | def parity_u32(x): |
| 2 | p = 0 |
| 3 | while x: |
| 4 | p ^= x & 1 |
| 5 | x >>= 1 |
| 6 | return p |