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.rs
| 1 | fn popcount_u32(x: u32) -> u32 { |
| 2 | let mut v = x; |
| 3 | let mut c = 0u32; |
| 4 | while v != 0 { c += v & 1; v >>= 1; } |
| 5 | c |
| 6 | } |